These exercises cover base plotting for Plotting in R.

Exercise 1

Read in the data “timecourse.csv” as a data.frame and get a summary of column values

##       Time         Control1        Control2       Treatment1      Treatment2  
##  Min.   : 0.0   Min.   :2.000   Min.   :3.000   Min.   : 3.00   Min.   : 4.0  
##  1st Qu.: 2.5   1st Qu.:3.500   1st Qu.:3.500   1st Qu.: 7.00   1st Qu.: 8.5  
##  Median : 5.0   Median :5.000   Median :4.000   Median :12.00   Median :13.0  
##  Mean   : 5.0   Mean   :4.909   Mean   :4.727   Mean   :10.36   Mean   :11.0  
##  3rd Qu.: 7.5   3rd Qu.:6.500   3rd Qu.:6.000   3rd Qu.:14.50   3rd Qu.:14.0  
##  Max.   :10.0   Max.   :7.000   Max.   :7.000   Max.   :15.00   Max.   :15.0
##       Time         Control1        Control2       Treatment1      Treatment2  
##  Min.   : 0.0   Min.   :2.000   Min.   :3.000   Min.   : 3.00   Min.   : 4.0  
##  1st Qu.: 2.5   1st Qu.:3.500   1st Qu.:3.500   1st Qu.: 7.00   1st Qu.: 8.5  
##  Median : 5.0   Median :5.000   Median :4.000   Median :12.00   Median :13.0  
##  Mean   : 5.0   Mean   :4.909   Mean   :4.727   Mean   :10.36   Mean   :11.0  
##  3rd Qu.: 7.5   3rd Qu.:6.500   3rd Qu.:6.000   3rd Qu.:14.50   3rd Qu.:14.0  
##  Max.   :10.0   Max.   :7.000   Max.   :7.000   Max.   :15.00   Max.   :15.0

Exercise 2

Produce a histogram of the values for control and treatment samples

Exercise 3

Put these in the same plot with same X scale limits

Exercise 4

Make a barplot of values in control sample 1 for every time point

Exercise 5

Make a barplot of mean values in control and treatment samples side by side for every time point

Exercise 6

Create a line graph showing control and treatment samples against time.