| River | Elevation | DissolvedOxygen |
|---|---|---|
| Whanganui River | upland | 10.6 |
| Whanganui River | upland | 10.7 |
| Opai River | lowland | 10.65 |
| Opai River | lowland | 10.75 |
Im simply trying to create a side by side boxplot of DissolvedOxygen in the upland and lowland elevations. But im having real trouble creating a boxplot of DissolvedOxygen where Elevation == "upland" or "lowland". This is for an assignment but none of the course materials has covered how to do this and my google searches are giving me some complex answers that i cant quite wrap my head around. Any Help would be much appreciated.
df1, then you can do:boxplot(DissolvedOxygen~Elevation, data=df1)ggplot() + geom_boxplot(data = df1, mapping = aes(River, DissolvedOxygen, fill = Elevation))will work for you.