as.sf.cartogramR: Coerce a cartogramR to a sf object

View source: R/as.sf.cartogramR.R

as.sf.cartogramRR Documentation

Coerce a cartogramR to a sf object

Description

Coerce a cartogramR to a sf object returning the sf object used to construct the cartogram with the cartogram as geometry and some more attributes

Usage

## S3 method for class 'cartogramR'
as.sf(x, ...)

Arguments

x

a cartogramR object

\dots

arguments passed to or from other methods.

Value

a sf object including all the data (attributes) contained in the original sf object used to construct the cartogram and

  • original areas of region (orig_area)

  • final/deformed areas of region (final_area)

  • target areas of region (target_area)

  • original centers (x_orig_centers and y_orig_centers)

  • final centers (x_final_centers and y_final_centers)


cartogramR documentation built on Oct. 18, 2022, 5:08 p.m.