Below is a document created from Yvonne’s ggplot lesson for the CEREO REU Workshop. No new R code is introduced here, just a new dataset and variable names. Try to replicate this document in R Markdown (including this!
Open the .Rmd file to see behind the scenes
Helpful Resources:
kable(head(example_few_dataset))| Day | Max | Min | Average | Precipitation | NewSnow | SnowDepth |
|---|---|---|---|---|---|---|
| 1 | 63 | 34 | 48.5 | 0 | 0 | 0 |
| 2 | 62 | 39 | 50.5 | 0 | 0 | 0 |
| 3 | 61 | 41 | 51.0 | 0 | 0 | 0 |
| 4 | 54 | 39 | 46.5 | 0.09 | 0 | 0 |
| 5 | 56 | 30 | 43.0 | 0 | 0 | 0 |
| 6 | 58 | 31 | 44.5 | 0 | 0 | 0 |
ex.data=example_few_dataset
sapply(ex.data, function(x) length(unique(x)))## Day Max Min Average Precipitation
## 30 20 17 23 5
## NewSnow SnowDepth
## 2 1
ggplot(data = <DATA>, mapping = aes(<MAPPINGS>)) + <GEOM_FUNCTION>()