I want to produce a x,y plot, with ggplot or whatever works, with multiple columns represented in the table below: They should be grouped together with Day, Soil Number, Sample. Mean is my y value and SD as my errorbar while the column Day should also serve as my x value as a timeline. How do I manage this?
Results_CMT
# A tibble: 22 x 5
# Groups: Day, Soil_Number [10]
Day Soil_Number Sample Mean SD
<int> <int> <chr> <dbl> <dbl>
1 3.84 0.230
2 0 65872 R 4.82 0.679
3 1 65871 R 3.80 1.10
4 1 65872 R 3.24 1.61
5 3 65871 fLF NA NA
6 3 65871 HF 1.73 0.795
7 3 65871 oLF 0.360 0.129
8 3 65871 R 3.13 1.36
9 3 65872 fLF NA NA
10 3 65872 HF 1.86 0.374
# ... with 12 more rows
At the end their should be 8 Lines (if data is found).
65871 R
65871 HF
65871 fLF
65871 oLF
65872 R
65872 HF
65872 fLF
65872 oLF
Do I have to produce another Column with a combined character of Day, SoilNumber and Sample?
Thanks for any help.