- data
A data frame or tibble. Occurrence records as input.
- flagColours
A character vector. Colours in order of pass (TRUE), fail (FALSE), and NA.
Default = c("#127852", "#A7002D", "#BDBABB").
- fileName
Character. The name of the file to be saved, ending in ".pdf".
If saving as a different file type, change file type suffix - See device
.
- outPath
A character path. The path to the directory in which the figure will be saved.
Default = OutPath_Figures.
- width
Numeric. The width of the output figure in user-defined units Default = 15.
- height
Numeric. The height of the output figure in user-defined units Default = 9.
- units
Character. The units for the figure width and height passed to ggplot2::ggsave()
("in", "cm", "mm", or "px"). Default = "in".
- dpi
Numeric. Passed to ggplot2::ggsave()
. Plot resolution. Also accepts a string input: "retina" (320), "print" (300), or
"screen" (72). Applies only to raster output types. Default = 300.
- bg
Character. Passed to ggplot2::ggsave()
. Background colour. If NULL, uses the plot.background fill value from the plot theme.
Default = "white."
- device
Character. Passed to ggplot2::ggsave()
. Device to use. Can either be a device function (e.g. png), or one of "eps", "ps", "tex" (pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only).
Default = "pdf". If not using default, change file name suffix in fileName argument.
- speciesName
Optional. Character. A species name, as it occurs in the user-input nameColumn.
If provided, the data will be filtered to this species for the plot.
- saveFiltered
Optional. Logical. If TRUE, the filtered data will be saved to the computer
as a .csv file.
- filterColumn
Optional. The flag column to display on the map. Default = .summary.
- nameColumn
Optional. Character. If speciesName is not NULL, enter the column to look
for the species in. A User might realise that, combined with speciesName, figures can be made for
a variety of factors.
- plotMap
Logical. If TRUE, the function will produce a point map. Tested for use with one
species at a time; i.e., with speciesName is not NULL.
- mapAlpha
Optional. Numeric. The opacity for the points on the map.
- xbuffer
Optional. Numeric vector. A buffer in degrees of the amount to increase the
min and max bounds along the
x-axis. This may require some experimentation, keeping in mind
the negative and positive directionality of hemispheres. Default = c(0,0).
- ybuffer
Optional. Numeric vector. A buffer in degrees of the amount to increase the
min and max bounds along the y-axis. This may require some experimentation, keeping in mind
the negative and positive directionality of hemispheres. Default = c(0,0).
- ptSize
Optional. Numeric. The size of the points as passed to ggplot2. Default = 1.
- saveTable
Optional. Logical. If TRUE, the function will save the data used to produce the
compound bar plot.
- jitterValue
Optional. Numeric. The value to jitter points by in the map in decimal degrees.
- returnPlot
Logical. If TRUE, return the plot to the environment. Default = FALSE.
- ...
Optional. Extra variables to be fed into forcats::fct_recode()
to change names on plot.
For example... 'B. Mont.' = "BMont", 'B. Minkley' = "BMin", Ecd = "Ecd", Gaiarsa = "Gai"