All Projects → marcosci → layer

marcosci / layer

Licence: CC0-1.0 License
Create stacked tilted maps

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to layer

Soccer ggplots
Soccer/football analytics blog posts & data viz from the World Cup, Premier League, Copa America, and beyond. Using ggplot2, ggsoccer, & more. (Est. June 2018) ****Please look at the README for best version of the code!****
Stars: ✭ 115 (+18.56%)
Mutual labels:  ggplot2, rstats
Econocharts
Microeconomics/macroeconomics charts in ggplot2
Stars: ✭ 161 (+65.98%)
Mutual labels:  ggplot2, rstats
Gganimate
A Grammar of Animated Graphics
Stars: ✭ 1,744 (+1697.94%)
Mutual labels:  ggplot2, rstats
Ggeconodist
📉 Create Diminutive Distribution Charts
Stars: ✭ 53 (-45.36%)
Mutual labels:  ggplot2, rstats
cusumcharter
Easier CUSUM control charts. Returns simple CUSUM statistics, CUSUMs with control limit calculations, and function to generate faceted CUSUM Control Charts
Stars: ✭ 17 (-82.47%)
Mutual labels:  ggplot2, rstats
Colormap
R package to generate colors from a list of 44 pre-defined palettes
Stars: ✭ 55 (-43.3%)
Mutual labels:  ggplot2, rstats
Patchwork
The Composer of ggplots
Stars: ✭ 2,002 (+1963.92%)
Mutual labels:  ggplot2, rstats
Ggrepel
📍 Repel overlapping text labels away from each other.
Stars: ✭ 853 (+779.38%)
Mutual labels:  ggplot2, rstats
Ghibli
Studio Ghibli colour palettes
Stars: ✭ 227 (+134.02%)
Mutual labels:  ggplot2, rstats
Plotly
An interactive graphing library for R
Stars: ✭ 2,096 (+2060.82%)
Mutual labels:  ggplot2, rstats
Soccergraphr
Soccer Analytics in R using OPTA data
Stars: ✭ 42 (-56.7%)
Mutual labels:  ggplot2, rstats
DataViz-Teaching
📈 Visualizations for DataViz Teaching
Stars: ✭ 29 (-70.1%)
Mutual labels:  ggplot2, rstats
Ggplot Courses
👨‍🏫 ggplot2 Teaching Material
Stars: ✭ 40 (-58.76%)
Mutual labels:  ggplot2, rstats
Ggbernie
A ggplot2 geom for adding Bernie Sanders to ggplot2
Stars: ✭ 96 (-1.03%)
Mutual labels:  ggplot2, rstats
Ggcats
The geom you always wished for adding cats to ggplot2
Stars: ✭ 34 (-64.95%)
Mutual labels:  ggplot2, rstats
Complex Upset
A library for creating complex UpSet plots with ggplot2 geoms
Stars: ✭ 147 (+51.55%)
Mutual labels:  ggplot2, rstats
Tidymv
Tidy Model Visualisation for Generalised Additive Models
Stars: ✭ 25 (-74.23%)
Mutual labels:  ggplot2, rstats
Geowaffle
Combining waffle plot with geofacet
Stars: ✭ 26 (-73.2%)
Mutual labels:  ggplot2, rstats
Calendr
Ready to print calendars with ggplot2
Stars: ✭ 161 (+65.98%)
Mutual labels:  ggplot2, rstats
scclusteval
Single Cell Cluster Evaluation
Stars: ✭ 57 (-41.24%)
Mutual labels:  ggplot2, rstats

layer

R build status Project Status: Active CRAN_Status_Badge CRAN Downloads

The goal of layer is to simplify the whole process of creating stacked tilted maps, that are often used in scientific publications to show different environmental layers for a geographical region. Tilting maps and layering them allows to easily draw visual correlations between these environmental layers.

Something in the line of:

Installation

You can install the development version of layer from GitHub with:

# install.packages("devtools")
devtools::install_github("marcosci/layer")

Example

This is a basic example which shows you how to solve a common problem:

library(layer)

tilt_landscape_1 <- tilt_map(landscape_1)
#> Loading required package: raster
#> Loading required package: sp
tilt_landscape_2 <- tilt_map(landscape_2, x_shift = 25, y_shift = 50)
tilt_landscape_3 <- tilt_map(landscape_3, x_shift = 50, y_shift = 100)
tilt_landscape_points <- tilt_map(landscape_points, x_shift = 75, y_shift = 150)

map_list <- list(tilt_landscape_1, tilt_landscape_2, tilt_landscape_3, tilt_landscape_points)

plot_tiltedmaps(map_list, 
                layer = c("value", "value", "value", NA),
                palette = c("bilbao", "mako", "rocket", NA),
                color = "grey40")

More advanced examples

Some more realistic looking data (DEM, drought, precipitation, and wildfires for continental USA):

tilt_landscape_1 <- tilt_map(dem_usa, y_tilt = 3)
tilt_landscape_2 <- tilt_map(drought_usa, y_tilt = 3, x_shift = 15, y_shift = 25)
tilt_landscape_3 <- tilt_map(prec_usa,y_tilt = 3,  x_shift = 30, y_shift = 50)
tilt_landscape_4 <- tilt_map(fire_usa,y_tilt = 3, x_shift = 45, y_shift = 65)

map_list <- list(tilt_landscape_1, tilt_landscape_2, tilt_landscape_3, tilt_landscape_4)

plot_tiltedmaps(map_list, palette =c("tofino", "rocket", "mako", "magma"), direction = c(-1, 1, 1, 1)) 

Code of Conduct

Please note that the layer project is released with a Contributor Code of Conduct. By contributing to 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].