Learn R Programming

see (version 0.6.4)

plot.see_parameters_distribution: Plot method for describing distributions of vectors

Description

The plot() method for the parameters::describe_distribution() function.

Usage

# S3 method for see_parameters_distribution
plot(
  x,
  dispersion = FALSE,
  dispersion_alpha = 0.3,
  dispersion_color = "#3498db",
  dispersion_style = c("ribbon", "curve"),
  size_bar = 0.7,
  highlight = NULL,
  highlight_color = NULL,
  ...
)

Arguments

x

An object.

dispersion

Logical, if TRUE, will add range of dispersion for each variable to the plot.

dispersion_alpha

Transparency level of dispersion ribbon.

dispersion_color

Color of dispersion ribbon.

dispersion_style

Character, style of dispersion area. "ribbon" for a ribbon, "curve" for a normal-curve.

size_bar

Size of bar geoms.

highlight

Vector with names of categories in x that should be highlighted.

highlight_color

Vector of color values for highlighted categories. The remaining (non-highlighted) categories will be filled with a lighter grey.

...

Arguments passed to or from other methods.

Value

A ggplot2-object.

Examples

Run this code
# NOT RUN {
library(parameters)
set.seed(333)
x <- sample(1:100, 1000, replace = TRUE)
result <- describe_distribution(x)
result
plot(result)
# }

Run the code above in your browser using DataLab