powered by
ggplot2_args
Constructor of ggplot2_args class of objects. The ggplot2_args argument should be a part of every module which contains any ggplot2 graphics. The function arguments are validated to match their ggplot2 equivalents.
ggplot2
For more details see the vignette: vignette("custom-ggplot2-arguments", package = "teal.widgets").
vignette("custom-ggplot2-arguments", package = "teal.widgets")
ggplot2_args(labs = list(), theme = list())
(ggplot2_args) object.
(named list) where all fields have to match ggplot2::labs() arguments.
list
ggplot2::labs()
(named list) where all fields have to match ggplot2::theme() arguments.
ggplot2::theme()
resolve_ggplot2_args() to resolve multiple objects into one using pre-defined priorities.
resolve_ggplot2_args()
parse_ggplot2_args() to parse resolved list into list of calls.
parse_ggplot2_args()
ggplot2_args( labs = list(title = "TITLE"), theme = list(title = ggplot2::element_text(size = 20)) )
Run the code above in your browser using DataLab