Learn R Programming

paleofire (version 1.2.4)

plot.potveg: plot.potveg

Description

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

Usage

# S3 method for 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)

See Also

potveg

Examples

Run this code
# NOT RUN {
# }
# 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")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab