Package: choroplethr 3.7.3

choroplethr: Simplify the Creation of Choropleth Maps in R

Choropleths are thematic maps where geographic regions, such as states, are colored according to some metric, such as the number of people who live in that state. This package simplifies this process by 1. Providing ready-made functions for creating choropleths of common maps. 2. Providing data and API connections to interesting data sources for making choropleths. 3. Providing a framework for creating choropleths from arbitrary shapefiles. 4. Overlaying those maps over reference maps from Google Maps.

Authors:Ari Lamstein [aut, cre], Brian Johnson [ctb], Trulia, Inc. [cph]

choroplethr_3.7.3.tar.gz
choroplethr_3.7.3.zip(r-4.5)choroplethr_3.7.3.zip(r-4.4)choroplethr_3.7.3.zip(r-4.3)
choroplethr_3.7.3.tgz(r-4.4-any)choroplethr_3.7.3.tgz(r-4.3-any)
choroplethr_3.7.3.tar.gz(r-4.5-noble)choroplethr_3.7.3.tar.gz(r-4.4-noble)
choroplethr_3.7.3.tgz(r-4.4-emscripten)choroplethr_3.7.3.tgz(r-4.3-emscripten)
choroplethr.pdf |choroplethr.html
choroplethr/json (API)

# Install 'choroplethr' in R:
install.packages('choroplethr', repos = c('https://arilamstein.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/arilamstein/choroplethr/issues

Datasets:
  • congress116.regions - A data.frame containing geographic metadata about the Congressional Districts of the 116th US Congress
  • continental_us_states - A vector of the names of US Continental US States.
  • df_congress116_demographics - A data.frame containing demographic statistics about the 116th Congressional Districts
  • df_congress116_party - A data.frame containing party affiliation data about the Congressional Districts of 116th US Congress
  • df_county_demographics - A data.frame containing demographic statistics for each county in the United States.
  • df_japan_census - A data.frame containing basic demographic information about Japan.
  • df_ny_tract_demographics - A data.frame containing demographic statistics for each Census Tract in New York State.
  • df_pop_country - A data.frame containing population estimates for Countries in 2012.
  • df_pop_county - A data.frame containing population estimates for US Counties in 2012.
  • df_pop_ny_tract - A data.frame containing population estimates for all Census Tracts in New York State in 2012.
  • df_pop_state - A data.frame containing population estimates for US States in 2012.
  • df_president - A data.frame containing election results from the 2012 US Presidential election.
  • df_president_ts - A data.frame containing all US presidential election results from 1789 to 2012
  • df_state_age_2010 - A data.frame containing median age estimates for US states in 2010
  • df_state_age_2015 - A data.frame containing median age estimates for US states in 2015
  • df_state_demographics - A data.frame containing demographic statistics for each state plus the District of Columbia.

On CRAN:

29 exports 3 stars 2.28 score 112 dependencies 1 dependents 5 mentions 832 scripts 1.3k downloads

Last updated 7 months agofrom:87b26325c4. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 24 2024
R-4.5-winNOTEAug 24 2024
R-4.5-linuxNOTEAug 24 2024
R-4.4-winNOTEAug 24 2024
R-4.4-macNOTEAug 24 2024
R-4.3-winNOTEAug 24 2024
R-4.3-macNOTEAug 24 2024

Exports:admin1_choroplethadmin1_region_choroplethAdmin1ChoroplethAdmin1RegionChoroplethcalculate_percent_changeChoroplethchoroplethr_animatechoroplethr_wdicountry_choroplethCountryChoroplethcounty_choroplethcounty_choropleth_acsCountyChoroplethCountyZoomChoroplethdouble_mapfilter_to_voting_congressional_districtsget_acs_dataget_congressional_district_demographicsget_county_demographicsget_state_demographicsget_tract_demographicsget_tract_mapstate_choroplethstate_choropleth_acsStateChoroplethtract_choroplethTractChoroplethUSAChoroplethvisualize_df_by_race_ethnicity_party

Dependencies:acsaskpassbackportsbase64encbitbit64bitopsbslibcachemcheckmateclassclassIntclicliprclustercolorspacecpp11crayoncurldata.tableDBIdigestdplyre1071evaluatefansifarverfastmapfontawesomeforeignFormulafsgenericsggmapggplot2gluegridExtragtablehighrHmischmshtmlTablehtmltoolshtmlwidgetshttrisobandjpegjquerylibjsonliteKernSmoothknitrlabelinglatticelifecyclemagrittrMASSMatrixmemoisemgcvmimemunsellnlmennetopensslpillarpkgconfigplyrpngprettyunitsprogressproxypurrrR6rappdirsRColorBrewerRcppreadrRgoogleMapsrlangrmarkdownrpartrstudioapirvests2sassscalesselectrsfstringistringrsystibbletidycensustidyrtidyselecttigristinytextzdbunitsutf8uuidvctrsviridisviridisLitevroomWDIwithrwkxfunXMLxml2yaml

Readme and manuals

Help Manual

Help pageTopics
Create an admin1-level choropleth for a specified countryadmin1_choropleth
Create a map of Administrative Level 1 regionsadmin1_region_choropleth
An R6 object for creating Administration Level 1 choropleths.Admin1Choropleth
An R6 object for creating Administration Level 1 choropleths based on regions.Admin1RegionChoropleth
Calculate the percentage change between two choroplethr dataframes.calculate_percent_change
The base Choropleth object.Choropleth
Animate a list of choroplethschoroplethr_animate
Create a country-level choropleth using data from the World Bank's World Development Indicators (WDI)choroplethr_wdi
A data.frame containing geographic metadata about the Congressional Districts of the 116th US Congresscongress116.regions
A vector of the names of US Continental US States.continental_us_states
Create a country-level choroplethcountry_choropleth
An R6 object for creating country-level choropleths.CountryChoropleth
Create a choropleth of US Countiescounty_choropleth
Create a US County choropleth from ACS datacounty_choropleth_acs
Create a county-level choroplethCountyChoropleth
Create a county-level choropleth that zooms on counties, not states.CountyZoomChoropleth
A data.frame containing demographic statistics about the 116th Congressional Districtsdf_congress116_demographics
A data.frame containing party affiliation data about the Congressional Districts of 116th US Congressdf_congress116_party
A data.frame containing demographic statistics for each county in the United States.df_county_demographics
A data.frame containing basic demographic information about Japan.df_japan_census
A data.frame containing demographic statistics for each Census Tract in New York State.df_ny_tract_demographics
A data.frame containing population estimates for Countries in 2012.df_pop_country
A data.frame containing population estimates for US Counties in 2012.df_pop_county
A data.frame containing population estimates for all Census Tracts in New York State in 2012.df_pop_ny_tract
A data.frame containing population estimates for US States in 2012.df_pop_state
A data.frame containing election results from the 2012 US Presidential election.df_president
A data.frame containing all US presidential election results from 1789 to 2012df_president_ts
A data.frame containing median age estimates for US states in 2010df_state_age_2010
A data.frame containing median age estimates for US states in 2015df_state_age_2015
A data.frame containing demographic statistics for each state plus the District of Columbia.df_state_demographics
Place two maps side by sidedouble_map
Remove non-voting Congressional Districts from a data.framefilter_to_voting_congressional_districts
Returns a list representing American Community Survey (ACS) estimatesget_acs_data
Get a handful of demographic variables on US Congressional Districts from the US Census Bureau as a data.frame.get_congressional_district_demographics
Get a handful of demographic variables on US Counties from the US Census Bureau as a data.frame.get_county_demographics
Get a handful of demographic variables on US States from the US Census Bureau as a data.frame.get_state_demographics
Get a handful of demographic variables on Census Tracts in a State from the US Census Bureau as a data.frame.get_tract_demographics
Get a map of tracts in a state, as a data.frameget_tract_map
Create a choropleth of US Statesstate_choropleth
Create a US State choropleth from ACS datastate_choropleth_acs
Create a state-level choroplethStateChoropleth
Create a choropleth of Census Tracts in a particular state.tract_choropleth
An R6 object for creating choropleths of Census Tracts.TractChoropleth
Normal choropleth that draws Alaska and Hawaii as insets. In addition to a columns named "region" and "value", also requires a column named "state".USAChoropleth
Create box plots to visualize race and ethnicity by partyvisualize_df_by_race_ethnicity_party