plot.potveg: plot.potveg

Description Usage Arguments Value Author(s) See Also Examples

View source: R/potveg.R

Description

Plot "potveg" object i.e. produce a map by overlaying charcoal sites on potential vegetation maps. Uses ggplot2 syntax.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'potveg'
plot(
  x,
  size = 4,
  palette = NULL,
  alpha = 0.5,
  text = FALSE,
  points = TRUE,
  ...
)

Arguments

x

A "potveg object."

size

Size of the dots on the map.

palette

A custom color palette can be specified.

alpha

Transparency of charcoal sites dots

text

Logical: plot sites as numbers referring to potential vegetation index (text=TRUE) or as points (text=FALSE, default).

points

Logical: plot sites (TRUE, default)

...

...

Value

A ggplot2 ("gg") object that can be further modified (see example)

Author(s)

O. Blarquez

See Also

potveg

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
require(paleofire)
ID=pfSiteSel(c(1:10))
obj=potveg(ID,classif="l12")
plot(obj)

#Return a ggplot object
require(ggplot2)
p=plot(obj,text=TRUE,alpha=1)
p+ggtitle("My title")

## End(Not run)

paleofire documentation built on Jan. 11, 2020, 9:44 a.m.