I have three columns of data, titled Date, Upstream, and Downstream. I would like to create a graph that has Date on the x-axis and Upstream and Downstream as two separate lines.
I formatted 'Date' as yyyy-mm-dd, but I am having troubles creating a line graph using this format. Here's what I've tried so far.
ggplot(data1, aes(Date, Upstream)) + 
  geom_line() +
  scale_x_date (format = "%b-%Y") + 
  xlab("") + ylab("Height") 
 
     
    
