#' Quick geographic plot of occurrence data
#'
#' Generates a plot of occurrence data retrieved using \code{\link{occurrences}}.The plot uses
#' an Australian basemap and colours the occurrence records dots according to parameters
#'
#' @references \url{https://api.nbnatlas.org/}
#'
#' @param x list: a list object that has been downloaded using \code{\link{occurrences}}
#' @param filename string: name of file to be created; defaults to RPlots.pdf
#' @param qa string vector: list of record issues to be mapped; these can be assertion columnnames,
#' or 'all' or 'none' or any combination of 'error', 'warning' or 'fatal'. Column or categories in
#' your dataset can be viewed using \code{check_assertions}.
#' @param grouped logical: TRUE creates a single plot for all observations; FALSE plots individual
#' maps for the taxon level defined.
#' @param taxon_level string: taxonomic level at which to create maps; possible values are 'species',
#' 'genus', 'family' or 'order'
#' @param pch single number or character representing point type. See description of \code{pch} in \code{\link{points}}.
#' @param cex numeric: character (or symbol) expansion. See description of \code{cex} in \code{\link{points}}.
#' @param \dots : other options passed to pdf()
#' @return Generates a pdf that maps the distributions.
#'
#' @examples
#' \dontrun{
#' #download some observations
#' x <- occurrences(taxon="Lutra lutra",download_reason_id=10)
#' occurrences_plot(x)
#' x <- occurrences(taxon="Mayfly",download_reason_id=10)
#' occurrences_plot(x,"nbnPlot.pdf",qa="fatal",grouped=FALSE, taxon_level="species",pch='+')
#' }
# @export occurrences_plot
occurrences_plot <- function(x, filename = "Rplots.pdf", qa = c("fatal", "error"),
grouped = FALSE, taxon_level = "species", pch, cex = 0.75, ...) {
ALA4R::occurrences_plot(x, filename, qa,grouped, taxon_level, pch, cex, ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.