View source: R/scale-categorical.r
scshape | R Documentation |
This scale is automatically added when you use the shape aesthetic mapping. By using this scale you can explicitly decide whether the points used should be hollow or solid.
scshape(plot, name = "", solid = TRUE)
plot |
ggplot object |
name |
name of the scale (used in the legend) |
solid |
should points be solid or hollow? |
p <- ggplot(mtcars, aes=list(x=mpg, y=wt, shape=cyl))
ggpoint(p)
ggpoint(scshape(p, FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.