Skip to content

Commit dd5e7cf

Browse files
committed
Tweak shape example
1 parent 52e2e23 commit dd5e7cf

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

R/scale-shape.r

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727
#'
2828
#' # Show a list of available shapes
2929
#' df_shapes <- data.frame(shape = 0:24)
30-
#' ggplot(df_shapes, aes(shape = shape)) +
31-
#' geom_point(aes(shape = shape, x = 0, y = 0), size = 5, fill = 'red') +
30+
#' ggplot(df_shapes, aes(0, 0, shape = shape)) +
31+
#' geom_point(aes(shape = shape), size = 5, fill = 'red') +
3232
#' scale_shape_identity() +
33-
#' facet_wrap(~shape) + theme_void()
33+
#' facet_wrap(~shape) +
34+
#' theme_void()
3435
scale_shape <- function(..., solid = TRUE) {
3536
discrete_scale("shape", "shape_d", shape_pal(solid), ...)
3637
}

man/scale_shape.Rd

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)