Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Dec 8, 2023
1 parent 4ee4cfb commit 6530b3c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions R/guide-bins.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,16 @@ NULL
#' p
#'
#' # Remove the axis or style it
#' p + guides(size = guide_bins(theme = theme(legend.axis = element_blank())))
#' p + guides(size = guide_bins(
#' theme = theme(legend.axis.line = element_blank())
#' ))
#'
#' p + guides(size = guide_bins(show.limits = TRUE))
#'
#' my_arrow <- arrow(length = unit(1.5, "mm"), ends = "both")
#' p + guides(size = guide_bins(theme = theme(
#' legend.axis = element_line(arrow = my_arrow)
#' )))
#' p + guides(size = guide_bins(
#' theme = theme(legend.axis.line = element_line(arrow = my_arrow))
#' ))
#'
#' # Guides are merged together if possible
#' ggplot(mtcars) +
Expand Down
10 changes: 6 additions & 4 deletions man/guide_bins.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6530b3c

Please sign in to comment.