build_display_map: Moves Alaska and Hawaii for compact 50 state map

Description Usage Arguments Value

View source: R/helpers.R

Description

Moves, scales, and rotates Alaska and Hawaii to make a compact 50 state map for data vizualization.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
build_display_map(
  shapefile,
  smooth = 0.005,
  rotate_ak = -27,
  scale_ak = 0.4,
  shift_ak = c(-5e+05, -3250000),
  rotate_hi = -25,
  scale_hi = 1,
  shift_hi = c(5e+06, -1400000)
)

Arguments

shapefile

A shapefile with CoC boundaries.

smooth

A numeric parameter for shapefile simplification.

rotate_ak

Rotation parameter for Alaksa, in degrees.

scale_ak

Scale factor for Alaska.

shift_ak

A vector with the horizonal and vertical shift for Alaska.

rotate_hi

Rotation parameter for Hawaii, in degrees

scale_hi

Scale factor for Hawaii.

shift_hi

A vector with the horizonal and vertical shift for Hawaii

Value

A spatial data frame with adjusted representations of Alaska and Hawaii.


ucsf-bhhi/coc-data documentation built on Dec. 23, 2021, 1:07 p.m.