`qplot(carat, price, data = dsmall, geom = c("smooth","point"))`
I get exactly what I should: smoothed line with standard error shading plus individual points.
If I don't want the shading, I try:
`qplot(carat, price, data = dsmall, geom = c("smooth","point"),se = FALSE)`
I am working through Hadley's book "ggplot2" and in section 2.5.1 find that some of his code on adding a smoother with qplot does not work for me.
If I run:
`qplot(carat, price, data = dsmall, geom = c("smooth","point"))`
I get exactly what I should: smoothed line with standard error shading plus individual points.
If I don't want the shading, I try:
`qplot(carat, price, data = dsmall, geom = c("smooth","point"),se = FALSE)`
I get: get:
Error: Unknown parameters: se
But the parameter se miraculously becomes known if I drop the idea of "point":
`qplot(carat, price, data = dsmall, geom = c("smooth"),se = FALSE)`
yields a smoothed line without shading, just as it should.
What do I need to do to get points and smoothed line without shading?
I am using ggplot 2.1.0 and R version 3.2.3
A kind person on stackoverflow has suggested how I can achieve a smoother without the shading using ggplot2, but as the book chapter is about qplot I would like to know if it is still possible using qplot.
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.