For the following questions you work with the built-in dataset Puromycin. It contains reaction velocity of an enzymatic reaction at different concentrations, and for two different states (treated and untreated):

 

   conc rate   state
1  0.02   76 treated
2  0.02   47 treated
3  0.06   97 treated
4  0.06  107 treated
5  0.11  123 treated
6  0.11  139 treated
7  0.22  159 treated
8  0.22  152 treated
9  0.56  191 treated
10 0.56  201 treated

 

Question: Use ggplot2 graphics to create an estimate of the relation between the variables conc and rate (which are measured in twofold every time) using a smoother. You want to model the rate in function of log(concentration). You can check the examples in the help file of geom_smooth(). Store the graph in an object called p6.

 

Note: Because Dodona can check ggplot2 graphics directly, we do not need the ggplotify package and you can immediately start typing your graphical command(s).