theme_ds4psy

0th

Percentile

ds4psy default plot theme (using ggplot2 and unikn).

theme_ds4psy provides a basic ds4psy theme to use in ggplot2 commands.

Usage
theme_ds4psy(col_title = "black", base_size = 11, base_family = "",
  base_line_size = base_size/20, base_rect_size = base_size/20)
Arguments
col_title

Color of title (text) elements (optional, numeric). Default: col_title = "black". Consider using col_title = unikn::pal_seeblau[[4]] in combination with black or grey data points.

base_size

Base font size (optional, numeric). Default: base_size = 11.

base_family

Base font family (optional, character). Default: base_family = "".

base_line_size

Base line size (optional, numeric). Default: base_line_size = base_size/20.

base_rect_size

Base rectangle size (optional, numeric). Default: base_rect_size = base_size/20.

Details

The theme is lightweight and no-nonsense, but somewhat opinionated (e.g., in using mostly grey scales to allow emphasizing data points with color accents).

See Also

unikn::theme_unikn for the source of the current theme.

Other plot functions: plot_fn, plot_fun, plot_n, plot_tiles

Aliases
  • theme_ds4psy
Examples
# NOT RUN {
# }
# NOT RUN {
  # Plotting iris dataset (using ggplot2 and theme_ds4psy):
  
  library("ggplot2")  # theme_ds4psy requires loading ggplot2 
  
  ggplot(datasets::iris) +
    geom_jitter(aes(x = Petal.Length, y = Petal.Width, color = Species), size = 3, alpha = 2/3) +
    labs(title = "Iris species",
         caption = "Data from datasets::iris") +
    theme_ds4psy(col_title = "black", base_size = 11)
# }
# NOT RUN {
# }
Documentation reproduced from package ds4psy, version 0.1.0, License: CC BY-SA 4.0

Community examples

Looks like there are no examples yet.