mc_color_palettes return a pair of default color for data observations and model prediction.

mc_color_palettes()

mc_set_model_color(color = NULL)

mc_set_obs_color(color = NULL)

Arguments

color

The color used for model predictions and data observations. By default, mcplot() uses mc_color_palettes() to define colors for model predictions and data observations.

Details

mc_set_model_color sets a global color for all geoms that represent model predictions. It change all color related aesthetics (e.g. color or fill). mc_set_obs_color does the same thing as mc_set_model_color except setting for geoms that represent data observations.

Examples


mc_color_palettes()
#> $observed
#> [1] "#4d7aa8"
#> 
#> $model
#> [1] "#f18e28"
#> 

mcplot(mpg_model) +
  mc_set_model_color(color = "#d95f02")
#> Warning: No shared levels found between `names(values)` of the manual scale and the
#> data's fill values.

  mc_set_obs_color(color = "#1b9e77")
#> $obs_color
#> [1] "#1b9e77"
#>