I have huge dataset for which I need to create plot with all the temperature data for a time scale on the same plot. Now, the data frame consists of many repeats of the following structure: Name, Date, Temp, Name__1, Date__1, Temp__1,...
So for every line, I want to use 3 columns and then plot the next 3 columns. I don't know if it is possible to use some kind of loop for this. What I've been doing so far is the following:
ggplot(data = "name_of_mydatase") +
geom_line(mapping = aes(Date, Temp, col = Name)) +
geom_line(mapping = aes(Date__1, Temp1, col = Name__1))
If I have to repeat this for every single temperature logger, the code would be endless and I know there are more elegant ways to do this but I just can't figure out a simpler ways. Can someone please help? Thank you so much!!!