facet_transform_geos_by_group: Manipulates gemetries by group to make them suitable for...

facet_transform_geos_by_groupR Documentation

Manipulates gemetries by group to make them suitable for faceting in a plot

Description

The data in each group will be transformed using a Lambert Equal Area Conic centred at the group's geometry and centered. The projection preserves area, so this is useful if area comparisons desired. Alternatively the 'scale_to_fill“option can be used to scale the geometry to fill each facet to the specified 'aspect_ratio'.

Usage

facet_transform_geos_by_group(
  data,
  ...,
  scale_to_fill = FALSE,
  aspect_ratio = 1
)

Arguments

data

datafrae with the geometries

...

arguments to group by, these should be the same arguments used for faceting

scale_to_fill

logical, will scale the geometries to fill each facet

aspect_ratio

the aspect ratio for each facet, only used if scale_to_fill is 'TRUE'

Value

a data frame with transformed geometries and 'NA' crs


mountainMath/mountainmathHelpers documentation built on Nov. 14, 2022, 2:56 a.m.