We can enhance this plot using various arguments within the plot() command. We can now create a simple plot of the two variables as follows: plot(bodymass, height) Copy and paste the following code to the R command line to create the bodymass variable. Now let’s take bodymass to be a variable that describes the masses (in kg) of the same ten people. Copy and paste the following code to the R command line to create this variable. We take height to be a variable that describes the heights (in cm) of ten people. Today let’s re-create two variables and see how to plot them and include a regression line.
0 Comments
Leave a Reply. |