Section 25 Two Numerics
25.1 Scatter Plot
The generic function plot
is used for plotting of R objects. For simple scatter plot of two continuous variables, it produces the plot for y
against x
.
For more details about the graphical parameter arguments that can be plugged into the plot
function, type: ?plot
.
25.2 Example 1
data(mtcars)
Prepare a scatter plot of wt as x-axis and mpg as y-axis
Draw a simple regression line