Scatter plots
A scatter plot is a basic plotting device comparing datasets with two axes. A basic scatter plot is provided with the plot
function built into the R system.
Note
Several objects available in R and packages have their own plot
function in order to effectively portray the data associated.
The plot
function looks as follows:
plot(x, y, type, main, sub, xlab, ylab, asp)
The various parameters of this function are described in the following table:
Parameter |
Description |
---|---|
|
This is an independent variable. |
|
This is a dependent variable. |
|
This defines the type of plot. It should be one of the following types:
|
|
This is the title of the plot. |
|
This... |