Feature | Argument | Value | Example |
---|---|---|---|
Title | main | string | “Scatter Plot” |
Subtitle | sub | string | “Displacement vs Miles Per Gallon” |
X Axis Label | xlab | string | “Displacement” |
Y Axis Label | ylab | string | “Miles Per Gallon” |
plot(mtcars$disp, mtcars$mpg,
main = 'Displacement vs Miles Per Gallon')
plot(mtcars$disp, mtcars$mpg,
main = 'Displacement vs Miles Per Gallon',
sub = 'Mileage is inversely related to Displacement')