Learn R Programming

paleofire (version 1.1.8)

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

"plot"(x, size = 4, palette = NULL, alpha = 0.5, text = FALSE, ...)

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).
...
...

Value

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

See Also

potveg

Examples

Run this code


# #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")


Run the code above in your browser using DataLab