Description Usage Arguments Value Examples
A friendly shortcut function that produces a good looking graph of a population sample. The main and lower part is composed of an histogram. The upper part is enriched with a marginal box plot.
1 2 3 |
sample |
A vector of the population sample. |
title |
A title for the plot. |
subtitle |
A subtitle for the plot. Unfortunately, this is not yet supported with the non-dev version of GGPlot2, but should come soon. |
caption |
A caption for the plot. Unfortunately, this is not yet supported with the non-dev version of GGPlot2, but should come soon. |
x_start |
The left most position that will be displayed on the x axis. Overflowing values will be ignored. |
x_end |
The right most position that will be displayed on the x axis. Overflowing values will be ignored. |
bins |
The number of bins in the histogram. |
x_scale_type |
"Normal" (default) or "Log10". |
y_scale_type |
"Normal" (default) or "Log10". |
variable_type |
"Discrete" (default) or "Continuous". |
plot_addition |
Complementary plot objets to be added to the new plot object for enrichment purposes.
|
verbosity |
0: no messages. > 0 more and more verbose messages. |
A good looking graph.
1 2 3 | plot_sample(sample = rnorm(n = 10000), title = "Normal sample")
plot_sample(sample = rpois(n = 10000, lambda = exp(1)), title = "Poisson sample", variable_type = "Discrete")
plot_sample(sample = rgeom(n = 1000, p = .2), title = "Geometric sample", variable_type = "Discrete")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.