I am creating a histogram for my itunes library, length of song (seconds), vs frequency. The graph is coming out nicely, but I can't plot a regression line over it without an error being returned.
qplot(v10, xlab = "Length", ylab = "Frequency",
main = "Length of Songs In my library", binwidth = 1, bins = 100 )
This returns a nice plot, when I add
+ geom_smooth(method='lm + x^2')
I get errors. I have tried variations to get a regression line, all of them failing. I am thinking it might have something to do with my Y values being a frequency of x, and not having a column of its own in the data frame.