[ad_1]
I fixed it by: adding this line df1$yr <- strftime(df1$Close.Date, "%Y") and then replacing Close.Date with yr in the ggplot line.
[ad_2]
solved ggplot2: Group histogram data by year
[ad_1]
I fixed it by: adding this line df1$yr <- strftime(df1$Close.Date, "%Y") and then replacing Close.Date with yr in the ggplot line.
[ad_2]
solved ggplot2: Group histogram data by year