Generic Plot Types
The plot()
function in R is the function to create the most basic type of plots.
A simplified format of the function is:
Here,
x and y: the coordinates of points to plot
type: the type of graph to create; Possible values are :
type=βpβ: for points (by default)
type=βlβ: for lines
type=βbβ: for both; points are connected by a line
type=βoβ: for both βoverplottedβ;
type=βhβ: for βhistogramβ like vertical lines
type=βsβ: for stair steps
type=βnβ: for no plotting
Example
Source:
Source of contents on this page: Generic plot types in R
Last updated