View source: R/base-matchLabels.R
matchLabels | R Documentation |
Allow user to define ggplot labels, and populate missing values from the
defaults specified in labels
formal argument.
matchLabels(labels, argName = "labels")
labels |
|
argName |
|
list
.
Returns an empty list on NULL
input.
Updated 2022-05-24.
ggplot2::labs()
.
fun <- function(
object,
labels = list(
"title" = NULL,
"x" = "x-axis",
"y" = "y-axis"
)) {
labels <- matchLabels(labels)
labels
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.