datasetplot: Plot GBIF Occurrence Data

View source: R/gbifDownload.R

datasetplotR Documentation

Plot GBIF Occurrence Data

Description

Function to visualise the data associated with a GBIF occurrence download.

Usage

datasetplot(object, ..., titleLabelWidth = 40)

Arguments

object

An object that inherits from class gbifOcc (such as that produced by the gbifOccDownload function).

...

Named arguments passed to constituent plotting functions. Arguments that are of the form points.parameter will be passed to the geom_sf function that determines the plotting behaviour of the occurrence records (without the points. prefix). If arguments of the form boundary.parameter are provided then a boundary layer is added to the plot (with data drawn from the boundary.data argument) and these arguments are similarly passed to the corresponding geom_sf function (without the boundary. prefix). Argument with the prefixes yearbar. and datasetbar. are passed to the geom_bar functions that plot the dataset occurrences counted by year and source dataset respectively. Arguments with the colour. prefix are passed to the scale_colour_discrete and scale_fill_discrete functions that define the colour palettes in the constituent plots. Finally, arguments with arrange. prefix are passed to the arrangeGrob function that arranges the constituent plots.

titleLabelWidth

An integer scalar giving the number of characters to aim for when wrapping text associated with the titles of dataset names in legends and axis labels.

Value

A datasetplotGrob object.

Author(s)

Joseph D. Chipperfield, joechip90@googlemail.com

See Also

gbifOccDownload, autoplot, geom_sf, arrangeGrob, scale_colour_discrete, scale_fill_discrete


joechip90/PaGAn documentation built on April 17, 2025, 4:05 p.m.