Vallo Varik committed May 16, 2022 1 2 3 4 5 6 7 ``````# Motivation Getting up to speed with R using dose-response for 32 drugs against 6 bacterial strains. # Tasks `````` Vallo Varik committed May 17, 2022 8 ``````In the following, we go through the most common steps in data analysis: `````` Vallo Varik committed May 17, 2022 9 10 ``````exploration and transformation (i.e. deriving new variables). Integral to both steps is visualization i.e. making graphs. `````` Vallo Varik committed May 16, 2022 11 12 13 `````` ## Explore `````` Vallo Varik committed May 17, 2022 14 15 16 ``````1. Plot growth curves following raw OD in time. Input [data](doc/tasks/01_dat.csv) and expected [output](doc/tasks/01_out.pdf) plot are provided. The data is for `````` Vallo Varik committed May 16, 2022 17 `````` azithromycin against *S. flexneri* M90T from day 2022-05-04 (first `````` Vallo Varik committed May 17, 2022 18 `````` replicate). *A tip: Use `facet_wrap` with `ncol = 1` argument to `````` Vallo Varik committed May 16, 2022 19 `````` have different concentrations on separate plots.* `````` Vallo Varik committed May 16, 2022 20 `````` `````` Vallo Varik committed May 17, 2022 21 22 ``````2. Try again, now with [data](doc/tasks/02_dat.csv) from two days (let us plot days in different color). In addition, transform the y-axis `````` Vallo Varik committed May 17, 2022 23 24 25 `````` to logarithmic scale. Expected [output](doc/tasks/02_out.pdf). *A tip: you need to turn the `Date` variable into a factor.* `````` Vallo Varik committed May 17, 2022 26 27 28 29 30 31 ``````3. Once more, now with [data](doc/tasks/03_dat.csv) from three days. Expected [output](doc/tasks/03_out.pdf). You will encounter an issue because there were two biological replicates on that day. There are multiple ways to overcome this, but for now, I recommend to solve by using `group` parameter of `aes` e.g. `ggplot(aes(..., group = Plt))`.``````