Skip to content

📝 Mention (fill_)alpha() in theme element docs #6283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion R/theme-elements.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
#' `margin()`, `margin_part()` and `margin_auto()` are all used to specify the
#' margins of elements.
#'
#' @param fill Fill colour.
#' @param fill Fill colour. `fill_alpha()` can be used to set the transparency
#' of the fill.
#' @param colour,color Line/border colour. Color is an alias for colour.
#' `alpha()` can be used to set the transparency of the colour.
#' @param linewidth,borderwidth Line/border size in mm.
#' @param size,fontsize text size in pts.
#' @param arrow.fill Fill colour for arrows.
Expand All @@ -26,17 +28,21 @@
#' calculating final element state.
#' @return An S3 object of class `element`, `rel`, or `margin`.
#' @examples
#' # A standard plot
#' plot <- ggplot(mpg, aes(displ, hwy)) + geom_point()
#'
#' # Turning off theme elements by setting them to blank
#' plot + theme(
#' panel.background = element_blank(),
#' axis.text = element_blank()
#' )
#'
#' # Text adjustments
#' plot + theme(
#' axis.text = element_text(colour = "red", size = rel(1.5))
#' )
#'
#' # Turning on the axis line with an arrow
#' plot + theme(
#' axis.line = element_line(arrow = arrow())
#' )
Expand Down
10 changes: 8 additions & 2 deletions man/element.Rd

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

Loading