I collected temperature and dissolved oxygen (DO) vertical profiles (from water surface to bottom) during my field surveys in a lake. I am trying to do some data exploration/viz to figure out how to use my data. I am trying to plot all my sites in the same plot by date, one plot for temperature (Temp_C) and one for dissolved oxygen (ODO_mgL) per survey date. I have two "Tows", one is S (start) and one E (end), I am only trying to plot the "S" tows for now.
I am having issues when plotting these, sometimes it comes out weird. I think it is because data was collected every second so there might be too many points. Is there a way I can plot this in a neater way? I would be okay with taking the mean every meter and having one temperature and one DO reading every meter instead of every second (i.e. 1 temp./DO reading at 1 m (average), 2m, 3m, 4m, 5m, etc...).
library(tidyverse)
library(ggplot2)
sonde <- read.csv("SondeRaw/sonde_max_depth_no.up_byTow.csv",header=TRUE)
CH_720 <- sonde %>%
filter(Date == '7/20/2021' & Tow == 'S')
#Temperature plot for all CH sites 07/20/2021
#This one looks good
ggplot(CH_720) + aes(x=Temp_C, y=Depth_m, color = Site) +
geom_line() + scale_y_reverse() + xlim(0,25) +
labs(title="Temperature", x="Temperature (C)",
y="Depth (m)",
caption="JUL 20 CH Sites") +
theme(plot.title=element_text(hjust=0.5),
plot.caption = element_text(face = "italic"))
#Dissolved oxygen plot for all CH sites 07/20/2021
#This one looks weird, particularly for site CH711 near the surface
ggplot(CH_720) + aes(x=ODO_mgL, y=Depth_m, color = Site) +
geom_line() + scale_y_reverse() + xlim(0,11) +
labs(title="Dissolved Oxygen", x="DO (mg/L)",
y="Depth (m)",
caption="JUL 20 CH Sites") +
theme(plot.title=element_text(hjust=0.5),
plot.caption = element_text(face = "italic"))
Access data here: https://github.com/cabanelas/sonde_data Please let me know if you have problems accessing my data, I am still learning how to use GitHub properly. Just uploaded this so you can access what I am working with.
Any help is appreciated. I have not been able to find useful resources online about plotting temperature and dissolved oxygen profiles.