Reputation: 680
I'm trying to use the qplot
function including the ggplot2
library but when I perform the plot, it warns the next:
qplot(carat, price, data=diamonds, geom=c("point", "smooth"), method="lm")
Warning: Ignoring unknown parameters: method
If watched in a post that it could be cause of library versions, but I haven't got it.
My software versions are:
Upvotes: 0
Views: 652
Reputation: 206197
If qplot
did support the method=
parameter, it was in the distant past. Better to just use proper ggplot
commands to make your plot.
ggplot(diamonds, aes(carat, price)) +
geom_point() +
geom_smooth(method="lm")
Upvotes: 2