I have a large time series of temperature observations that I am attempting to visualize using ggplot in R. The temperature observations were collected at 20-minute intervals over a period of months resulting in 9048 data points. I can visualize the entire time series, but I would like to visualize the data by having a plot for each day in order to analyze any fine-scale features in my dataset.
I was able to plot the first day of data using the code below, but I do not know how to best go about setting up a loop or using another technique to split up the rest of the data easily so they can be plotted. Am I overthinking this?
p <- ggplot(Kappa_Temp,aes(x=TIME_UTC,y=TEMPERATURE))+
geom_line(color="red")+
geom_point(color="red")+
xlab("")+
theme_ipsum()+
theme(axis.text.x=element_text(angle=60, hjust=1))+
scale_x_datetime(limit=c(TIME_UTC[1],TIME_UTC[72]))
p