dia_names: Add variable names to diagonal facets

Description Usage Arguments Details Value See Also

View source: R/add_dia_funs.R

Description

dia_names() is a wrapper around stat_dia_names() which plots the names of variables in a ggcorrm plot at appropriate positions in the diagonal facets.

Usage

1
dia_names(y_pos = 0.15, mapping = NULL, ..., inherit.aes = FALSE)

Arguments

y_pos

numeric between 0 and 1 specifying the relative position of the text labels along the x axis (defaults to 0.2).

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

...

Additional parameters passed to stat_dia_names().

inherit.aes

If FALSE, overrides the default aesthetics, rather than combining with them. This is most useful for helper functions that define both data and aesthetics and shouldn't inherit behaviour from the default plot specification, e.g. borders().

Details

dia_names() plots text labels on the plot diagonal and takes care of the often complicated positioning in plots with different x and y ranges.

On default, inherit.aes is set to FALSE as in most cases this is the preferred behavior for the labels for variable names.

Value

A ggplot2 layer containing text labels on the diagonal facets.

See Also

stat_dia_names()


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