Description Usage Arguments Details Value See Also
Add histograms or frequency polygons to the diagonal panels of ggcorrm plots
1 2 3 4 5 6 7 8 9 10 | dia_histogram(
mapping = NULL,
lower = 0.3,
upper = 0.98,
bins = 10,
position = "identity",
...
)
dia_freqpoly(mapping = NULL, lower = 0.3, upper = 0.98, bins = 15, ...)
|
mapping |
Set of aesthetic mappings created by aes. |
lower |
numeric between 0 and 1. Lower limit of the histograms/frequency
polygons relative to the range of the |
upper |
numeric between 0 and 1. Upper limit of the histograms/frequency
polygons relative to the range of the |
bins |
Number of bins. Overridden by |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
... |
Additional parameters for |
The lower
andupper
arguments can be used to offset the
histograms/frequency polygons from zero and optimally fit them to the range
of each panel. The standard values are chosen to work well when placing
text labels under the histograms/frequency polygons with dia_names()
.
dia_histogram()
adds histograms of the numeric variables in a ggcorrm
plot to the plot diagonal.
Frequency polygons can be created with dia_freqpoly()
. Both functions use
the same stat, stat_dia_bin()
, which is built upon
ggplot2::stat_bin().
A ggplot2
layer with histograms or frequency polygons for the
variables on the plot diagonal of ggcorrm
plots.
ggplot2::stat_bin(),
stat_dia_bin()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.