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.
solved ggplot2: Group histogram data by year
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.
solved ggplot2: Group histogram data by year