Skip to content

These functions generate placeholder values.

Usage

default_label()

default_param()

Value

A placeholder value to be used within uses_labels() or uses_geom_params().

Examples

require(ggplot2)
#> Loading required package: ggplot2
#> 
#> Attaching package: ‘ggplot2’
#> The following object is masked from ‘package:ggcheck’:
#> 
#>     is_ggplot

p <- ggplot(data = mpg, mapping = aes(x = displ, y = hwy, color = trans)) +
  geom_smooth(se = FALSE) +
  labs(title = "My plot", x = "Weight", y = "MPG")

uses_labels(p, x = default_label(), color = default_label())
#>     x color 
#> FALSE FALSE 

uses_geom_params(p, "smooth", size = default_param(), se = default_param())
#>  size    se 
#>  TRUE FALSE