Skip to content

Commit 89ad80f

Browse files
committed
sprinkle comments in examples
1 parent 4d51401 commit 89ad80f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

R/theme-elements.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,21 @@
2828
#' calculating final element state.
2929
#' @return An S3 object of class `element`, `rel`, or `margin`.
3030
#' @examples
31+
#' # A standard plot
3132
#' plot <- ggplot(mpg, aes(displ, hwy)) + geom_point()
3233
#'
34+
#' # Turning off theme elements by setting them to blank
3335
#' plot + theme(
3436
#' panel.background = element_blank(),
3537
#' axis.text = element_blank()
3638
#' )
3739
#'
40+
#' # Text adjustments
3841
#' plot + theme(
3942
#' axis.text = element_text(colour = "red", size = rel(1.5))
4043
#' )
4144
#'
45+
#' # Turning on the axis line with an arrow
4246
#' plot + theme(
4347
#' axis.line = element_line(arrow = arrow())
4448
#' )

man/element.Rd

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

0 commit comments

Comments
 (0)