scshape {ggplot} | R Documentation |
Create a scale for categorical shapes.
scshape(plot = .PLOT, name="", solid=TRUE)
plot |
plot to add scale to |
name |
name of the scale (used in the legend) |
solid |
should points be solid or hollow? |
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.
Hadley Wickham <h.wickham@gmail.com>
p <- ggplot(mtcars, aes=list(x=mpg, y=wt, shape=cyl)) ggpoint(p) ggpoint(scshape(p, FALSE))