scshape: Scale: shape

Description Usage Arguments Examples

View source: R/scale-categorical.r

Description

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.

Usage

1
scshape(plot, name = "", solid = TRUE)

Arguments

plot

ggplot object

name

name of the scale (used in the legend)

solid

should points be solid or hollow?

Examples

1
2
3
p <- ggplot(mtcars, aes=list(x=mpg, y=wt, shape=cyl))
ggpoint(p)
ggpoint(scshape(p, FALSE))

hadley/ggplot1 documentation built on Aug. 19, 2019, 2:42 p.m.