Description Usage Arguments Details Author(s) References See Also Examples
View source: R/ggplot_descdist.R
Generate compact plot following the descdist
function as customizable ggplot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ggplot_descdist(
data,
boot = 1000,
obs.col = "darkblue",
boot.col = "orange",
title = "Cullen and Frey graph",
subtitle = NULL,
xlab = "square of skewness",
ylab = "kurtosis",
obs_geom_size = 4,
boot_geom_size = 0.02,
dist_geom_pts_size = 5,
dist_geom_line_size = 0.6,
axis_text_size = 12,
axis_title_size = 12,
plot_title_size = 20,
plot_subtitle_size = 17,
strip_text_size = 18,
legend_text_size = 12
)
|
data |
A numeric vector. |
boot |
If not |
obs.col |
Color used for the observed point on the skewness-kurtosis graph. |
boot.col |
Color used for bootstrap sample of points on the skewness-kurtosis graph. |
title, subtitle |
Title and Subtitle |
xlab, ylab |
These are respectively x and y labels. |
obs_geom_size, boot_geom_size, dist_geom_pts_size |
The size of the geom_point to be used for the empirical distributoion (default to 4), bootstrapping (default to 0.02), theoritical distribution (default to 5), respectively. |
dist_geom_line_size |
The size of the geom_line to be used for the empirical distributoion. The default is 0.6. |
axis_text_size, axis_title_size, plot_title_size, plot_subtitle_size, strip_text_size, legend_text_size |
= 12, Text size respectively corresponding to axis text (default to 12), axis title (default to 12), plot title (default to 20), subtitle (default to 17), strip text (default to 18), and legend (default to 12). |
see descdist
.
Issoufou Liman
Marie Laure Delignette-Muller, Christophe Dutang (2015). fitdistrplus: An R Package for Fitting Distributions. Journal of Statistical Software, 64(4), 1-34. http://www.jstatsoft.org/v64/i04/.
1 2 | ggplot_descdist(rbeta(100, shape1 = 0.05, shape2 = 1), boot = 500, obs.col = "blue",
boot.col = "yellow")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.