create_map: Create Map

Description Usage Arguments Author(s) Examples

View source: R/create_map.R

Description

Wrapper function to automate the process of creating maps and save them in jpg.

Usage

1
2
3
create_map(data,color_range = c("#FFFFFF","#ff2323"),color_option =
  "D",map_name = NULL, save_jpg = list(T, width = 80, height = 64),
  cathegorical = F, limits = NULL)

Arguments

data

Data frame or Matrix with 3 columns: data, lon, lat in that order.

color_range

Hexa decimal or colour names to describe the range in which the color values will be ploted

color_option

Color option for package viridis in case of cathegorical values

map_name

Name of the map used for saving and as a map tittle

save_jpg

list of width and height values for jpeg file

cathegorical

Boolean to define if the values are continuous or cathegories

limits

If defined, sets up the upper and lower bounds to the values plotted in the map.

Author(s)

Marcos Alves mppalves@gmail.com

Examples

1
2
3
4
5
create_map(map_change,
  save_jpg = list(T, width = 80, height = 64), map_name = "climate scenario 1",
  cathegorical = F, color_range = c("#FF0F47", "#FFFFFF", "#59BF34DB"),
  limits = c(-75, 75)
)

mppalves/GSTools documentation built on May 22, 2020, 7:21 p.m.