Re: [R] creating a line plot for time series data for several years

2019-09-05 Thread Marna Wagley
Thank you, Rui. It helped me a lot. It is highly appreciated. thanks, On Thu, Sep 5, 2019 at 1:14 AM Rui Barradas wrote: > Hello, > > Thanks for the reproducible example. > All you have to do is to use the aesthetic group = year in either > ggplot() or geom_line(). > > This works: > > > library(

Re: [R] creating a line plot for time series data for several years

2019-09-04 Thread Rui Barradas
Hello, Thanks for the reproducible example. All you have to do is to use the aesthetic group = year in either ggplot() or geom_line(). This works: library(ggplot2) daT$date <- as.Date(daT$date) daT$DATE <- format(daT$date, format="%m/%d") Ab <- ggplot(daT, aes(x = as.factor(DATE),

[R] creating a line plot for time series data for several years

2019-09-04 Thread Marna Wagley
Hi R Users, I have been getting a trouble to create a time series plot (line) as I was trying to create a line graph for each year using month and date (in x axis). I would like to put only one x axis (month and date) for three years using the facet_grid, but it has not been creating a lineplot for