ggbuild_descdist_data: Format 'descdist' data to ggplot2

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/ggbuild_descdist_data.R

Description

Generate a list of descdist outputs to be understood by ggplot2.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ggbuild_descdist_data(
  data,
  discrete = FALSE,
  boot = NULL,
  method = "unbiased",
  graph = TRUE,
  title = "Cullen and Frey graph",
  subtitle = NULL,
  obs.col = "darkblue",
  boot.col = "orange"
)

Arguments

data

A numeric vector.

discrete

If TRUE, the distribution is considered as discrete.

boot

If not NULL, boot values of skewness and kurtosis are plotted from bootstrap samples of data. boot must be fixed in this case to an integer above 10.

method

"unbiased" for unbiased estimated values of statistics or "sample" for sample values.

graph

If FALSE, the skewness-kurtosis graph is not plotted.

title, subtitle

Title and Subtitle

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.

Details

see descdist.

Author(s)

Issoufou Liman

References

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/.

See Also

descdist.

Examples

1
2
ggbuild_descdist_data(rbeta(100, shape1 = 0.05, shape2 = 1), boot = 500, obs.col = 'blue',
boot.col = 'yellow')

Issoufou-Liman/decisionSupportExtra documentation built on Dec. 21, 2020, 6:28 p.m.