sibling_layers: Sibling layers

sibling_layersR Documentation

Sibling layers

Description

The goal of geomtextpath is to label (curved) lines in a plot. The ggplot2 package has various ways to construct lines. For several of the ggplot2 line functions, there is a plain 'text' sibling and a 'label' sibling that includes a text box. Below is an overview of how function in geomtextpath relate to those in ggplot2.

Details

ggplot2 geom Text equivalent Label equivalent
geom_path() geom_textpath() geom_labelpath()
geom_line() geom_textline() geom_labelline()
geom_segment() geom_textsegment() geom_labelsegment()
geom_curve() geom_textcurve geom_labelcurve()
geom_abline() geom_textabline() geom_labelabline()
geom_hline() geom_texthline() geom_labelhline()
geom_vline() geom_textvline() geom_labelvline()
geom_density() geom_textdensity() geom_labeldensity()
geom_smooth() geom_textsmooth() geom_labelsmooth()
geom_contour() geom_textcontour() geom_labelcontour()
geom_density2d() geom_textdensity2d() geom_labeldensity2d()
geom_sf() geom_textsf() geom_labelsf()

geomtextpath documentation built on June 22, 2024, 10:02 a.m.