Skip to contents

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