Package 'tilegramsR'

Title: R Spatial Data for Tilegrams
Description: R spatial objects for Tilegrams. Tilegrams are tiled maps where the region size is proportional to the certain characteristics of the dataset.
Authors: Bhaskar Karambelkar [aut, cre]
Maintainer: Bhaskar Karambelkar <[email protected]>
License: MIT + file LICENSE
Version: 0.2.9000
Built: 2024-10-27 03:03:52 UTC
Source: https://github.com/bhaskarvk/tilegramsr

Help Index


sf_Datamap.io.tilegram

Description

A 'sf' object where each polygon represents a state

A 'sf' object of centroids of each state

Usage

sf_Datamap.io.tilegram

sf_Datamap.io.tilegram.centers

Format

sf

Examples

## Not run: 
library(leaflet)
library(tilegramsR)
data <- sf_Datamap.io.tilegram
leaflet(data,
  options=leafletOptions(crs=leafletCRS("L.CRS.Simple"))) %>%
  addPolygons()

## End(Not run)

sf_DKOS_50_State_OuterHex_Tilemap_v1

Description

A 'sf' object where each polygon represents a state

A 'sf' object where each polygon represents a state

A 'sf' object of centroids of each state

Usage

sf_DKOS_50_State_OuterHex_Tilemap_v1

sf_DKOS_50_State_InnerHex_Tilemap_v1

sf_DKOS_50_State_Hex_Tilemap_v1.centers

Format

sf


sf_DKOS_CD_Hexmap_v1.1

Description

A 'sf' object where each polygon equals one congressional district

A 'sf' object where each polygon represents a state

A 'sf' object of centroids of each state

Usage

sf_DKOS_CD_Hexmap_v1.1

sf_DKOS_CD_Hexmap_v1.1.states

sf_DKOS_CD_Hexmap_v1.1.centers

Format

sf

Examples

## Not run: 
library(leaflet)
library(tilegramsR)
data <- sf_DKOS_CD_Hexmap_v1.1
leaflet(data,
  options=leafletOptions(crs=leafletCRS("L.CRS.Simple"))) %>%
  addPolygons()

## End(Not run)

sf_DKOS_Distorted_Electoral_College_Map_v1

Description

A 'sf' object where each polygon represents a state

A 'sf' object of centroids of each state

Usage

sf_DKOS_Distorted_Electoral_College_Map_v1

sf_DKOS_Distorted_Electoral_College_Map_v1.centers

Format

sf

Examples

## Not run: 
library(leaflet)
library(tilegramsR)
data <- sf_DKOS_Distorted_Electoral_College_Map_v1
leaflet(data,
  options=leafletOptions(crs=leafletCRS("L.CRS.Simple"))) %>%
  addPolygons()

## End(Not run)

sf_DKOS_Electoral_College_Map_v1

Description

A 'sf' object where each polygon equals one electoral college

A 'sf' object where each polygon represents a state

A 'sf' object of centroids of each state

Usage

sf_DKOS_Electoral_College_Map_v1

sf_DKOS_Electoral_College_Map_v1.states

sf_DKOS_Electoral_College_Map_v1.centers

Format

sf

Examples

## Not run: 
library(leaflet)
library(tilegramsR)
data <- sf_DKOS_Electoral_College_Map_v1
leaflet(data,
  options=leafletOptions(crs=leafletCRS("L.CRS.Simple"))) %>%
  addPolygons()

## End(Not run)

sf_FiveThirtyEightElectoralCollege

Description

A 'sf' object where each polygon equals one electoral vote

A 'sf' object where each polygon represents a state

A 'sf' object of centroids of each state

Usage

sf_FiveThirtyEightElectoralCollege

sf_FiveThirtyEightElectoralCollege.states

sf_FiveThirtyEightElectoralCollege.centers

Format

sf

Examples

## Not run: 
library(leaflet)
library(tilegramsR)
data <- sf_FiveThirtyEightElectoralCollege
leaflet(data,
  options=leafletOptions(crs=leafletCRS("L.CRS.Simple"))) %>%
  addPolygons()

## End(Not run)

sf_france_all_regions_population

Description

A 'sf' object for regions of France including overseas.

A 'sf' object of regional boundaries of each French region.

A 'sf' object of centroids of each French region.

Usage

sf_france_all_regions_population

sf_france_all_regions_population.regions

sf_france_all_regions_population.centers

Format

An object of class sf (inherits from data.frame) with 18 rows and 4 columns.


sf_france_departments

Description

A 'sf' object for departments of France.

A 'sf' object of centroids of each French department.

Usage

sf_france_departments

sf_france_departments.centers

Format

An object of class sf (inherits from data.frame) with 96 rows and 4 columns.


sf_france_regions_population

Description

A 'sf' object for regions of France

A 'sf' object of regional boundaries of each French region.

A 'sf' object of centroids of each French region.

Usage

sf_france_regions_population

sf_france_regions_population.regions

sf_france_regions_population.centers

Format

An object of class sf (inherits from data.frame) with 13 rows and 4 columns.


sf_germany_constituencies

Description

A 'sf' object for regions of Germany

A 'sf' object of centroids of each German region.

Usage

sf_germany_constituencies

sf_germany_constituencies.centers

Format

An object of class sf (inherits from data.frame) with 299 rows and 4 columns.


sf_NPR.DemersCartogram

Description

A 'sf' object where each polygon represents a state

A 'sf' object of centroids of each state

Usage

sf_NPR.DemersCartogram

sf_NPR.DemersCartogram.centers

Format

sf

Examples

## Not run: 
library(leaflet)
library(tilegramsR)
data <- sf_NPR.DemersCartogram
leaflet(data,
  options=leafletOptions(crs=leafletCRS("L.CRS.Simple"))) %>%
  addPolygons()

## End(Not run)

sf_NPR1to1

Description

A 'sf' object where each polygon represents a state

A 'sf' object of centroids of each state

Usage

sf_NPR1to1

sf_NPR1to1.centers

Format

sf

Examples

## Not run: 
library(leaflet)
library(tilegramsR)
data <- sf_NPR1to1
leaflet(data,
  options=leafletOptions(crs=leafletCRS("L.CRS.Simple"))) %>%
  addPolygons()

## End(Not run)

sf_Pitch_US_Population_2016_v1

Description

A 'sf' object where each polygon equals 500K people

A 'sf' object where each polygon represents a state

A 'sf' object of centroids of each state

Usage

sf_Pitch_US_Population_2016_v1

sf_Pitch_US_Population_2016_v1.states

sf_Pitch_US_Population_2016_v1.centers

Format

sf

Examples

## Not run: 
library(leaflet)
library(tilegramsR)
data <- sf_Pitch_US_Population_2016_v1
leaflet(data,
  options=leafletOptions(crs=leafletCRS("L.CRS.Simple"))) %>%
  addPolygons()

## End(Not run)

sf_WP

Description

A 'sf' object where each polygon represents a state

A 'sf' object of centroids of each state

Usage

sf_WP

sf_WP.centers

Format

sf

Examples

## Not run: 
library(leaflet)
library(tilegramsR)
data <- sf_WP
leaflet(data,
  options=leafletOptions(crs=leafletCRS("L.CRS.Simple"))) %>%
  addPolygons()

## End(Not run)

sf_WSJ

Description

A 'sf' object where each polygon represents a state

A 'sf' object of centroids of each state

Usage

sf_WSJ

sf_WSJ.centers

Format

sf

Examples

## Not run: 
library(leaflet)
library(tilegramsR)
spdf <- sf_WSJ
leaflet(spdf) %>% addPolygons()

## End(Not run)

tilegramsR

Description

Tilegrams are tiled maps where the region size is proportional to the certain characteristics of the dataset. This package provides several such tilegrams as simple feature (sf) objects.