Skip to content

Instantly share code, notes, and snippets.

View lgelape's full-sized avatar

Lucas Gelape lgelape

View GitHub Profile
@rafapereirabr
rafapereirabr / bivariate_lisa.R
Last active February 4, 2023 19:09
Map of bivariate spatial correlation in R (bivariate LISA)
library(stringr)
library(spdep)
library(rgdal)
library(magrittr)
library(ggplot2)
library(sf)
#======================================================
@rafapereirabr
rafapereirabr / Flow Map in R
Last active February 24, 2024 00:46
Create Flow Map in R using ggplot2
## This gist shows how to create Flow Maps in R using ggplot2.
## source: This is based on different bits of code from other with amazing R skills:
@ceng_l : http://web.stanford.edu/~cengel/cgi-bin/anthrospace/great-circles-on-a-recentered-worldmap-in-ggplot
@3wen : http://egallic.fr/maps-with-r/
@spatialanalysis : http://spatialanalysis.co.uk/2012/06/mapping-worlds-biggest-airlines/
@freakonometrics : http://freakonometrics.hypotheses.org/48184
# Libraries