Learn R Programming

SciencesPo (version 1.4.0)

scale_shape_pub: Shape scales for theme_pub (discrete)

Description

See pub_shape_pal for details.

Usage

scale_shape_pub(palette = "pub", ...)

Arguments

palette
the palette name, a character string.
...
common discrete scale parameters: name, breaks, labels, na.value, limits and guide. See discrete_scale for more details

See Also

Other shape pub: pub_shape_pal

Examples

Run this code
library("ggplot2")
library("scales")

p <- ggplot(mtcars) +
     geom_point(aes(x = wt, y = mpg, shape = factor(gear))) +
     facet_wrap(~am)
p + scale_shape_pub()

Run the code above in your browser using DataLab