All Projects → hrbrmstr → albersusa

hrbrmstr / albersusa

Licence: Unknown, MIT licenses found Licenses found Unknown LICENSE MIT LICENSE.md
Tools, shapefiles & data to work with an "AlbersUSA" composite projection in R

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to albersusa

Geodataviz Toolkit
The GeoDataViz Toolkit is a set of resources that will help you communicate your data effectively through the design of compelling visuals. In this repository we are sharing resources, assets and other useful links.
Stars: ✭ 149 (+119.12%)
Mutual labels:  cartography
moon geology atlas of space
Code, data, and instructions for mapping the geology of the moon
Stars: ✭ 76 (+11.76%)
Mutual labels:  cartography
spider
🕸️ 3D interactive analysis in your browser mostly written around the Three.js JavaScript library
Stars: ✭ 41 (-39.71%)
Mutual labels:  cartography
Topography atlas of space
Code and instructions for making topographic maps of planets and moons
Stars: ✭ 187 (+175%)
Mutual labels:  cartography
dictionary-renderer-toolkit
The Dictionary Renderer Toolkit provides documentation and tools for the creation of custom dictionary styles for use with the dictionary renderer.
Stars: ✭ 18 (-73.53%)
Mutual labels:  cartography
fishfrymap
Fish Fry Map project repository
Stars: ✭ 14 (-79.41%)
Mutual labels:  cartography
Terrain Classic
World-wide CartoCSS port of Stamen's classic terrain style
Stars: ✭ 110 (+61.76%)
Mutual labels:  cartography
protomaps.js
Lightweight vector map rendering, labeling and symbology for the web
Stars: ✭ 359 (+427.94%)
Mutual labels:  cartography
QGIS-visualization-workshop
QGIS visualization workshop materials.
Stars: ✭ 46 (-32.35%)
Mutual labels:  cartography
earthwyrm
Vector tile map server for openstreetmap data
Stars: ✭ 16 (-76.47%)
Mutual labels:  cartography
Fantasy Map Generator
Web application generating interactive and highly customizable maps
Stars: ✭ 2,802 (+4020.59%)
Mutual labels:  cartography
Contextily
Context geo-tiles in Python
Stars: ✭ 254 (+273.53%)
Mutual labels:  cartography
gridviz
visualization of gridded statistics
Stars: ✭ 108 (+58.82%)
Mutual labels:  cartography
Palettes
A tool for creating nice, percerptually correct and colorblind-safe color palettes.
Stars: ✭ 155 (+127.94%)
Mutual labels:  cartography
geog4572
Geovisual Analytics @ Oregon State University
Stars: ✭ 67 (-1.47%)
Mutual labels:  cartography
Western constellations atlas of space
Code, data, and instructions to map every star you can see from Earth
Stars: ✭ 121 (+77.94%)
Mutual labels:  cartography
CarteTopo
No description or website provided.
Stars: ✭ 23 (-66.18%)
Mutual labels:  cartography
delaunay-triangulation-algorithm
Delaunay Triangulation
Stars: ✭ 25 (-63.24%)
Mutual labels:  cartography
census-loader
A quick way to get started with ABS Census 2016 data
Stars: ✭ 32 (-52.94%)
Mutual labels:  cartography
openstreetmap-americana
A quintessentially American map style
Stars: ✭ 89 (+30.88%)
Mutual labels:  cartography

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Signed by Signed commit % Linux build Status Coverage Status Minimal R Version License

albersusa

Tools, Shapefiles & Data to Work with an ‘AlbersUSA’ Composite Projection

Description

Creating a composite projection for states and counties of the United States that includes scaled and shifted polygons for Alaska and Hawaii is time consuming and potentially error-prone. Functions and data sets are provided to make it easier to produce maps with a composite projection. Furthermore, named projections for common transormations are provided to further increase mapping productivity.

What’s Inside The Tin

The following functions are implemented:

  • counties_sf: Retrieve a U.S. county composite map, optionally with a projection, as a simplefeature
  • usa_sf: Retreive a U.S. state composite map, optionally with a projection, as a simplefeature

New ones:

  • points_elided: Shift points around Alaska and Hawaii to the elided area (by @rdinter)

Some legacy ones:

  • usa_composite: Retrieve a U.S. composite map, optionally with a projection
  • counties_composite: Retrieve a U.S. county composite map, optionally with a projection

Pre-canned projection strings:

  • us_aeqd_proj: Oblique azimuthal equidistant convenience projection
  • us_eqdc_proj: Equidistant conic convenience projection
  • us_laea_proj: Albers equal-area conic convenience projection
  • us_lcc_proj: Lambert conformal conic convenience projection
  • us_longlat_proj: Generic long/lat convenience projection

The following data sets are included:

  • system.file("extdata/composite_us_states.geojson.gz", package="albersusa")
  • system.file("extdata/composite_us_counties.geojson.gz", package="albersusa")

Also, the simplefeatures columns and @data slot of each SpatialPolygonsDataFrame has some handy data you can use (like FIPS codes and state/county population information).

Installation

remotes::install_git("https://git.rud.is/hrbrmstr/albersusa.git")
# or
remotes::install_git("https://git.sr.ht/~hrbrmstr/albersusa")
# or
remotes::install_gitlab("hrbrmstr/albersusa")
# or
remotes::install_bitbucket("hrbrmstr/albersusa")
# or
remotes::install_github("hrbrmstr/albersusa")

NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.

Usage

library(albersusa)
library(sf)
library(sp)
library(rgeos)
library(maptools)
library(ggplot2)
library(ggalt)
library(ggthemes)
library(viridis)
library(scales)

# current version
packageVersion("albersusa")
## [1] '0.4.0'

Simple features base

par(mar=c(0,0,1,0))

us_sf <- usa_sf("laea")
plot(us_sf["pop_2012"])

cty_sf <- counties_sf("aeqd")
plot(cty_sf["census_area"])

ggplot2

ggplot() +
  geom_sf(data = us_sf, size = 0.125)

ggplot() +
  geom_sf(data = us_sf, size = 0.125) +
  coord_sf(crs = us_longlat_proj)

ggplot() +
  geom_sf(data = cty_sf, size = 0.0725)

ggplot() +
  geom_sf(data = cty_sf, size = 0.0725) +
  coord_sf(crs = us_longlat_proj)

albersusa Metrics

Lang # Files (%) LoC (%) Blank lines (%) # Lines (%)
R 9 0.9 106 0.77 66 0.67 277 0.86
Rmd 1 0.1 31 0.23 32 0.33 46 0.14

Code of Conduct

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].