dia_density: Density curves for ggcorrm plots

Description Usage Arguments Details Value See Also

View source: R/add_dia_funs.R

Description

Add density curves to the diagonal panels of ggcorrm plots.

Usage

1
dia_density(mapping = NULL, lower = 0.3, upper = 0.98, ...)

Arguments

mapping

Set of aesthetic mappings created by aes. x and y are set automatically and must not be changed, but all other aesthetics may be manipulated. Defaults to NULL (use standard ggcorrm mapping).

lower

numeric between 0 and 1. Lower limit of the histograms/frequency polygons relative to the range of the y axis. Defaults to 0.25.

upper

numeric between 0 and 1. Upper limit of the histograms/frequency polygons relative to the range of the y axis. Defaults to 1.

...

Additional parameters for geom_dia_density().

Details

dia_density() adds density curves to the diagonal panels of ggcorrm plots. The placement of the curves is adjusted based on geom_dia_density(). The lower andupper arguments can be used to offset the density curves 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.

Value

A ggplot2 layer with histograms or frequency polygons for the variables on the plot diagonal of ggcorrm plots.

See Also

ggplot2::geom_density(), geom_dia_density()


r-link/corrmorant documentation built on Jan. 10, 2021, 7:26 p.m.