Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 30, 2021. It is now read-only.
/tilegramsRPublic archive

R wrapper for Tilegrams

License

NotificationsYou must be signed in to change notification settings

bhaskarvk/tilegramsR

Repository files navigation

There won't be any more development on this project. It is feature complete from my perspective. Thank you all who have used and contributed to this project.


tilegramsR

Project Status: Active – The project has reached a stable, usable state and is being actively developed.Last-changedateLicense: MITkeybase verifiedTravis-CI Build StatusAppVeyor Build Statusminimal R versionpackageversionCRAN_Status_Badge

The goal oftilegramsR package is to provide R spatial objects insf format representing various Tilegrams. The primary purpose of this data is to be used for data visualization. The objects provided can be plotted using base R plotting, ggplot2, or leaflet.

To know more about Tilegrams seethis post and athis web app.

Usage

Installation

install.packages('tilegramsR')ORLatestDevelopmentversiondevtools::install_github('bhaskarvk/tilegramsR')

Example Code

Check outinst\examples folder, or see it in action atRpubs: tilegramsR andRpubs: Election Map.

Data

The package provides spatial objects insf format.

Pitch Interactive Tilegrams

U.S.A

  • sf_Pitch_US_Population_2016_v1: Asf object where each feature = 500K people
  • sf_Pitch_US_Population_2016_v1.states: Asf object where each feature = 1 state of the U.S.A
  • sf_Pitch_US_Population_2016_v1.centers: Asf object of centroids of each state of the U.S.A.

Germany

  • sf_germany_constituencies: Asf object where each feature is a German Constituency
  • sf_germany_constituencies.centers: Asf object of centroids of each German Constituency

France

  • sf_france_regions_population: Asf object of French regions
  • sf_france_regions_population.regions: Asf object of boundaries of French regions
  • sf_france_regions_population.centers: Asf object of centroids of each French region
  • sf_france_all_regions_population: Asf object of French Regions including overseas regions
  • sf_france_all_regions_population.regions: Asf object of boundaries of all French regions
  • sf_france_all_regions_population.centers: Asf object of centroids of each French Region including overseas regions
  • sf_france_departments: Asf object of French departments
  • sf_france_departments.centers: Asf object of centroids of each French department

fivethirtyeight's Electoral College Tilegram

  • sf_FiveThirtyEightElectoralCollege: Asf object where each feature = 1 electoral college
  • sf_FiveThirtyEightElectoralCollege.states: Asf object where each feature = 1 state of the U.S.A
  • sf_FiveThirtyEightElectoralCollege.centers: Asf object of centroids of each state of the U.S.A.

NPR

Hexagon Tilegram

  • sf_NPR1to1: Asf object where each feature = 1 state of the U.S.A
  • sf_NPR1to1.centers: Asf object of centroids of each state of the U.S.A.

NPR.DemersCartogram

  • sf_NPR.DemersCartogram: Asf object where each feature = 1 state of the U.S.A
  • sf_NPR.DemersCartogram.centers: Asf object of centroids of each state of the U.S.A.

Daily KOS

Dual Hexagon Tilegram

  • sf_DKOS_50_State_OuterHex_Tilemap_v1: Asf object where each feature = 1 state of the U.S.A
  • sf_DKOS_50_State_InnerHex_Tilemap_v1: Asf object where each feature = 1 state of the U.S.A
  • sf_DKOS_50_State_Hex_Tilemap_v1.centers: Asf object of centroids of each state of the U.S.A.

Congressional Districts Tilegram

  • sf_DKOS_CD_Hexmap_v1.1: Asf object where each feature = 1 congressional District
  • sf_DKOS_CD_Hexmap_v1.1.states: Asf object where each feature = 1 state of the U.S.A
  • sf_DKOS_CD_Hexmap_v1.1.centers: Asf object of centroids of each state of the U.S.A.

Electoral College Tilegram

  • sf_DKOS_Electoral_College_Map_v1: Asf object where each feature = 1 electoral college
  • sf_DKOS_Electoral_College_Map_v1.states: Asf object where each feature = 1 state of the U.S.A
  • sf_DKOS_Electoral_College_Map_v1.centers: Asf object of centroids of each state of the U.S.A.

Distorted Electoral College Tilegram

  • sf_DKOS_Distorted_Electoral_College_Map_v1: Asf object where each feature = 1 state of the U.S.A
  • sf_DKOS_Distorted_Electoral_College_Map_v1.centers: Asf object of centroids of each state of the U.S.A.

Washington Post Tilegram

  • sf_WP: Asf object where each feature = 1 state of the U.S.A
  • sf_WP.centers: Asf object of centroids of each state of the U.S.A.

Wall Street Journal Tilegram

  • sf_WSJ: Asf object where each feature = 1 state of the U.S.A
  • sf_WSJ.centers: Asf object of centroids of each state of the U.S.A.

Datamap.io.tilegram

  • sf_Datamap.io.tilegram: Asf object where each feature = 1 state of the U.S.A
  • sf_Datamap.io.tilegram.centers: Asf object of centroids of each state of the U.S.A.

As and when newer Tilegrams are made available they will be added to this package.

Credits

Code of Conduct

Please note that this project is released with aContributor Code of Conduct. By participating in this project you agree to abide by its terms.


[8]ページ先頭

©2009-2025 Movatter.jp