subscale_identity: Identity sub-scale for thickness aesthetic

View source: R/subscale.R

subscale_identityR Documentation

Identity sub-scale for thickness aesthetic

Description

This is an identity sub-scale for the thickness aesthetic in ggdist. It returns its input as a thickness vector without rescaling. It can be used with the subscale parameter of geom_slabinterval().

Usage

subscale_identity(x)

Arguments

x

<numeric> Vector to be rescaled. Typically provided automatically by geom_slabinterval().

Value

A thickness vector of the same length as x, with infinite values in x squished into the data range.

See Also

Other sub-scales: subscale_thickness()


mjskay/ggdist documentation built on Nov. 21, 2024, 10:46 a.m.