occurrences | R Documentation |
A simply constructor function for class "Occurrences"
.
occurrences(x, schema = c("taxon", "gridcell"))
## S4 method for signature 'Occurrences'
plot(x, type, ...)
## S4 method for signature 'Occurrences'
text(x, type, ...)
## S4 method for signature 'Occurrences'
pdf(object, background, file, width, height, dingbats = FALSE, ...)
x |
A data.frame or Spatial* object. |
schema |
Character. Columns to be searched for. Column |
object |
An object of class |
background |
An object of class |
type |
Either |
file , width , height , dingbats |
Arguments for pdf. See |
... |
Not used. |
Use the pdf
function to plot occurrence points to top of map background saved mit pdf method for that class.
An object of class Occurrences
.
Roland Kaiser
background
e <- extent(13,14,46,47)
g <- floragrid(e)
x1 <- data.frame(taxon = "Genus species", gridcell = sample(g$GRIDCELL, 10))
x2 <- data.frame(taxon = "Genus species spp. subspecies", gridcell = sample(g$GRIDCELL, 10))
x <- rbind(x1, x2)
coordinates(x) <- gridcell2lnglat(x$gridcell)
o <- occurrences(x)
plot(o[o$taxon == "Genus species", ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.