All Projects → hafen → Geofacet

hafen / Geofacet

Licence: other
R package for geographical faceting with ggplot2

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Geofacet

SWDchallenge
📈 My contributions to the #SWDchallenge
Stars: ✭ 20 (-92.73%)
Mutual labels:  ggplot2
Rstudio TableContest 2020
📺 Table showing an "Overview and Series Trends of the Best TV Shows on IMDb" – My Contribution to the Rstudio Table Contest 2020
Stars: ✭ 16 (-94.18%)
Mutual labels:  ggplot2
flagfillr
Use flags as fills for ggplot2 maps. (WIP)
Stars: ✭ 23 (-91.64%)
Mutual labels:  ggplot2
ggchicklet
🀫 Create Chicklet (Rounded Segmented Column) Charts
Stars: ✭ 130 (-52.73%)
Mutual labels:  ggplot2
ggChernoff
R package for drawing Chernoff faces in ggplot2
Stars: ✭ 28 (-89.82%)
Mutual labels:  ggplot2
locator
deep learning prediction of geographic location from individual genome sequences
Stars: ✭ 26 (-90.55%)
Mutual labels:  geography
BuenColors
R package of colors for the Buenrostro Lab
Stars: ✭ 53 (-80.73%)
Mutual labels:  ggplot2
geowombat
GeoWombat: Utilities for geospatial data
Stars: ✭ 34 (-87.64%)
Mutual labels:  geography
rworkshops
Materials for R Workshops
Stars: ✭ 43 (-84.36%)
Mutual labels:  ggplot2
layer
Create stacked tilted maps
Stars: ✭ 97 (-64.73%)
Mutual labels:  ggplot2
microbiomeViz
Visualize microbiome data with black magic ggtree
Stars: ✭ 55 (-80%)
Mutual labels:  ggplot2
learning R
List of resources for learning R
Stars: ✭ 32 (-88.36%)
Mutual labels:  ggplot2
shadow-accrual-maps
Accumulated shadow data computed for New York City
Stars: ✭ 15 (-94.55%)
Mutual labels:  geography
DataViz-Teaching
📈 Visualizations for DataViz Teaching
Stars: ✭ 29 (-89.45%)
Mutual labels:  ggplot2
pencil-scribbles
Create pencil effect drawings from pictures using R
Stars: ✭ 30 (-89.09%)
Mutual labels:  ggplot2
gglmannotate
📈Annotate a ggplot with a description of a linear model
Stars: ✭ 24 (-91.27%)
Mutual labels:  ggplot2
cts
Projection library in Java
Stars: ✭ 41 (-85.09%)
Mutual labels:  geography
Scales
Tools for ggplot2 scales
Stars: ✭ 257 (-6.55%)
Mutual labels:  ggplot2
jcolors
A set of color palettes I like (or can at least tolerate)
Stars: ✭ 24 (-91.27%)
Mutual labels:  ggplot2
30diasdegraficos
30 tipos de gráficos hechos con R, con datos y código reproducible.
Stars: ✭ 47 (-82.91%)
Mutual labels:  ggplot2

Build Status Coverage Status CRAN CRAN Downloads

geofacet

This R package provides geofaceting functionality for ggplot2. Geofaceting arranges a sequence of plots of data for different geographical entities into a grid that strives to preserve some of the original geographical orientation of the entities. It's easiest to describe with examples. See below.

Install

install.packages("geofacet")
# or from github:
# remotes::install_github("hafen/geofacet")

Example

See here for the package vignette.

Barchart of state rankings in various categories:

library(ggplot2)

ggplot(state_ranks, aes(variable, rank, fill = variable)) +
  geom_col() +
  coord_flip() +
  facet_geo(~ state) +
  theme_bw()

us_categories

Unemployment rate time series for each state:

ggplot(state_unemp, aes(year, rate)) +
  geom_line() +
  facet_geo(~ state, grid = "us_state_grid2") +
  scale_x_continuous(labels = function(x) paste0("'", substr(x, 3, 4))) +
  ylab("Unemployment Rate (%)")

us_unemp

GDP per capita in relation to EU index (100) for each country in the European Union:

ggplot(eu_gdp, aes(year, gdp_pc)) +
  geom_line(color = "steelblue") +
  facet_geo(~ name, grid = "eu_grid1", scales = "free_y") +
  scale_x_continuous(labels = function(x) paste0("'", substr(x, 3, 4))) +
  ylab("GDP Per Capita in Relation to EU Index (100)") +
  theme_bw()

eu_gdp

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].