powered by
The plot() method for the parameters::describe_distribution() function.
plot()
parameters::describe_distribution()
# S3 method for see_parameters_distribution plot( x, dispersion = FALSE, alpha_dispersion = 0.3, color_dispersion = "#3498db", dispersion_style = c("ribbon", "curve"), size_bar = 0.7, highlight = NULL, color_highlight = NULL, ... )
A ggplot2-object.
An object.
Logical. If TRUE, a range of dispersion for each variable to the plot will be added.
TRUE
Numeric value specifying the transparency level of dispersion ribbon.
Character specifying the color of dispersion ribbon.
Character describing the style of dispersion area. "ribbon" for a ribbon, "curve" for a normal-curve.
"ribbon"
"curve"
Size of bar geoms.
A vector with names of categories in x that should be highlighted.
x
A 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.
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