scshape: Scale: shape

View source: R/scale-categorical.r

scshapeR Documentation

Scale: shape

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

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

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

hadley/ggplot1 documentation built on Dec. 1, 2024, 11:23 a.m.