Skip to content

Generates bivariate maps and intersects shapefiles with grids and excludes cells based on area coverage.

Notifications You must be signed in to change notification settings

hidasi/bivariatemaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"bivariatemaps"

R Package with functions developed over 10+ years at: https://rfunctions.blogspot.com

Simple example of usage:

# Load these packages (if not installed, use “install.packages()”):

library(classInt)
library(classInt)
library(raster)
library(dismo)
library(XML)
library(maps)
library(sp)
library(geodata)
library(bivariatemaps)

# Use ‘geodata’ to download temperature and precipitation rasters:

bclim <- worldclim_global(var="tavg", res=10, path=tempdir())
bclim2 <- worldclim_global(var="prec", res=10, path=tempdir())

# Use ‘bivariatemaps’ package to generate color matrix and bivariate map:

col.matrix<-colmat(nquantiles=10, upperleft="blue", upperright="green", bottomleft="grey", bottomright="red")
bivmap<-bivariate.map(bclim,bclim2, colormatrix=col.matrix, nquantiles=10)

image

About

Generates bivariate maps and intersects shapefiles with grids and excludes cells based on area coverage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages