Go to basic R

Go to importing data

Go to summarising data

Exercise 1. Using the cycling study data set, plot the \(\dot VO_{2max}\) as a function of time (timepoint of x-axis and VO2.max on the y-axis). Plot box-plots per group.

Solution Ex. 1


Exercise 2. Using the cycling study data set, plot the \(\dot VO_{2max}\) per kg body weight weight.T1as a function of time (timepoint of x-axis and VO2.max on the y-axis). Plot box-plots per group. Control the order of the timepoint factor so that “pre” is first followed by “meso1”, “meso2” and “meso3”.

Solution Ex. 2


Exercise 3. Using the cycling study data set, plot the \(\dot VO_{2max}\) per kg body weight weight.T1as a function of time (timepoint of x-axis and VO2.max on the y-axis). Instead of box plots, set color per group but show each data point with points and connected line. The lines should connect per subject, you need to control group = in aes. Control the order of the timepoint factor so that “pre” is first followed by “meso1”, “meso2” and “meso3”.

Solution Ex. 3


Exercise 4. Do your best to replicate the figure below.

Things to google:

Solution Ex. 4