plot_clim: Plot lat/long points on a raster map.

Description Usage Arguments Examples

View source: R/search_fun.R

Description

Plotting with fancy colors. Canned so you don't have to think too hard about it.

Usage

1
2
plot_clim(ext_ob, clim, boundaries = "", file = "", col = "red",
  legend = TRUE, l.cex = 0.9)

Arguments

ext_ob

A data.frame of climate values (i.e., extracted from the climate raster object). MUST include columns named 'lon' and 'lat'.

clim

A raster object of climate data (matching ext_ob)

boundaries

A shapefile (e.g., GADM country or state outlines)

file

If a file path is set this function will try to write the plot as a png to that path

col

Color of points to plot.

legend

TRUE or FALSE to plot the legend on the map.

l.cex

cex parameter to pass to legend function

Examples

1
2
3
4
5
6
## Not run: 
data(abies);
ext.abies = extraction(abies, climondbioclim, schema='raw');
plot_clim(ext.abies, climondbioclim[[5]]);

## End(Not run)

rsh249/vegdistmod documentation built on May 28, 2019, 3:31 a.m.