Generates a plot of occurrence data retrieved using occurrences.
The plot uses a Swedish basemap and colours the occurrence records dots
according to parameters
occurrences_plot( x, filename = "Rplots.pdf", qa = c("fatal", "error"), sweLyr = "Border", grouped = FALSE, taxon_level = "species", pch, cex = 0.75, ... )
| x | list: a list object that has been downloaded using |
|---|---|
| filename | string: name of file to be created; defaults to RPlots.pdf |
| qa | string vector: list of record issues to be mapped; these can be assertion column names,
or 'all' or 'none' or any combination of 'error', 'warning' or 'fatal'. Column or categories in
your data set can be viewed using |
| sweLyr | string: layer of swe_WGS84 to be plotted as background. Options are = |
| grouped | logical: TRUE creates a single plot for all observations; FALSE plots individual maps for the taxon level defined. |
| taxon_level | string: taxonomic level at which to create maps; possible values are 'species', 'genus', 'family' or 'order' |
| pch | single number or character representing point type. See description of |
| cex | numeric: character (or symbol) expansion. See description of |
| ... | : other options passed to pdf() |
Generates a pdf that maps the distributions of the observations.
https://api.biodiversitydata.se/
if (FALSE) { #download some observations x <- occurrences(taxon="Lutra lutra", download_reason_id=10) ## remember to configure your email occurrences_plot(x) x <- occurrences(taxon="Mayfly", download_reason_id=10) occurrences_plot(x,"obsPlot.pdf", qa="fatal", grouped=FALSE, taxon_level="species", pch='+') }