R Lab - Working With STATS4STEM Datasets
Today, you will work with pre-existing STATS4STEM datasets. These datasets are preinstalled in R, allowing you to immediately work and analyze given datasets.
A) First, go to the Forbes dataset that explores the relationship between boiling point and barometric pressure. Start by reading about the dataset, and variable descriptions.
B) Now, go to the Rweb work area and copy and paste the required first line needed to access the dataset. Once you have done that. Have Rweb display the dataset by simply printing the dataset name.
C) Next, get a summary of both variables individually, bp and pres, by using the function summary(variable.name).
D) Next, construct individual boxplots of both variables.
E) Construct individual histograms of both variables.
F) Next plot the two variables using the plot function: plot(xvariable, yvariable).
G) Now, using this help page, plot a best fit line on the graph.
H) What do you think the equation of the line is?
I) Now - let's work with the trees data set.
J) First, go to the trees dataset that explores the relationship between Girth, Height, and Volume. Start by reading about the dataset, and variable descriptions.
K) Now, go to the Rweb work area and copy and paste the required first line needed to access the dataset. Once you have done that. Have Rweb display the dataset by simply printing the dataset name.
L) Next, get a summary of all three variables variables individually by using the function summary(variable.name).
M) Next, construct individual boxplots for all three variables.
N) Construct individual histograms of all three variables.
O) Next create two scatterplots by plotting both Girth and Height against Volume using the plot function: plot(xvariable, yvariable). Which variable is a better predictor of Volume?
P) Now, using this help page, plot a best fit line on the graph to both scatterplots.
Q) What do you think the equation of each of the two lines are?
A) First, go to the Forbes dataset that explores the relationship between boiling point and barometric pressure. Start by reading about the dataset, and variable descriptions.
B) Now, go to the Rweb work area and copy and paste the required first line needed to access the dataset. Once you have done that. Have Rweb display the dataset by simply printing the dataset name.
C) Next, get a summary of both variables individually, bp and pres, by using the function summary(variable.name).
D) Next, construct individual boxplots of both variables.
E) Construct individual histograms of both variables.
F) Next plot the two variables using the plot function: plot(xvariable, yvariable).
G) Now, using this help page, plot a best fit line on the graph.
H) What do you think the equation of the line is?
I) Now - let's work with the trees data set.
J) First, go to the trees dataset that explores the relationship between Girth, Height, and Volume. Start by reading about the dataset, and variable descriptions.
K) Now, go to the Rweb work area and copy and paste the required first line needed to access the dataset. Once you have done that. Have Rweb display the dataset by simply printing the dataset name.
L) Next, get a summary of all three variables variables individually by using the function summary(variable.name).
M) Next, construct individual boxplots for all three variables.
N) Construct individual histograms of all three variables.
O) Next create two scatterplots by plotting both Girth and Height against Volume using the plot function: plot(xvariable, yvariable). Which variable is a better predictor of Volume?
P) Now, using this help page, plot a best fit line on the graph to both scatterplots.
Q) What do you think the equation of each of the two lines are?