R: ggplot – Plotting a single variable line chart

See the original posting on DZone Python

(geom_line requires the following missing aesthetics: y

I’ve been learning how to do moving averages in R and having done that calculation I wanted to plot these variables on a line chart using ggplot.

The vector of rolling averages looked like this:
Preview Text: 

I’ve been learning how to do moving averages in R and having done that…