Question: R program 1. Consider the built-in data frame pressure. (a) Plot pressure against temperature, and use the following command to pass a curve through these
1. Consider the built-in data frame pressure. (a) Plot pressure against temperature, and use the following command to pass a curve through these data: curve ((0.168+0.007x)(20/3), from =0, to =400, add = TRUE ) (b) Now, apply the power transformation y3/20 to the pressure data values. Plot these transformed values against temperature. Is a linear or nonlinear relationship evident now? Use the abline () function to pass a straight line through the points. (You need an intercept and slope for this - see the part (a) of this question to obtain appropriate values.) (c) Add a suitable title to the graph. (d) Re-do the above plots, but use the mfrow () function to display them in a 12 layout on the graphics page. Suppress the surrounding box and arrange the numeric axis labels to be horizontal. A sample output is given below. (see help (par))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
