I am new to shiny and have finished a few tutorials but one thing is still unclear for me. How can i add two graphs to one plot? The user must be able two chose different years to plot over each other to see the difference in temperature changes. I tried it with a switch but that only lets me plot one graph at a time.
the user can choose from the following years 2001,2002,2003,2004 and 2005.If the user chooses 2002 and 2005. The data from that years must be plotted over each other.
Currently it is possible for me to ask the user to choose the wanted years and link the data to the wanted years. The problem is setting up the code that the wanted years are plotted. The plots that i have made with shiny are all with the normal plot code, it has not yet been possible for met to make a plot in shiny with ggplot.
Can someone tell me how it is possible or point me to a post which presents the possibilities?
Thank you for your time.