mocis2d: mocis2d

View source: R/mocis2d.R

mocis2dR Documentation

mocis2d

Description

Creates a 2d map showing the average concentrations of the contaminants for each locale.

Usage

mocis2d(mocis, var, genus, year = NULL, latest = 3, domain = c(9, 27,
  54, 70), bg.col = qualitative_hcl(3, "Pastel 1", l = 90)[3],
  land.col = sequential_hcl(3, "PinkYl")[3], shapefile = NULL,
  statnames = stations(), border = TRUE, size = 5,
  col.limit = diverging_hcl(2)[2], xoff = c(1, -1), yoff = c(1, -1),
  textcoord = NULL, frac = 0.8, max.lwd = 4, cuts = 5,
  specs = species(), xpos = 0.05, ypos = 0.95, cex.text = 0.8,
  plotlabels = plotlabs(), cex.mtext = 0.8, cex.legend = 1,
  pos.legend = NULL, mtext.at = NULL, ...)

Arguments

mocis

The output from mocis.

var

The contaminant of interest.

genus

The species of interest.

year

Which year should be the latest?

latest

How many years should the average value be based on? Defaults to 3.

domain

The section of the map to be plotted. A length four vector consisting of longitude (west), longitude (east), latitude (smouth), latitude (north).

bg.col

Ocean color.

land.col

Land color.

shapefile

Path to a shapefile if the borders should be plotted using a specific shapefile. Defaults to NULL.

statnames

A list with names and coordinates of the stations. Defaults to stations().

border

A logical. Should country borders be plotted? Deafualts to TRUE

size

The maximum size of the circles. Defaults to 5.

col.limit

The color of the line around the circle when the limit is exceeded.

xoff

Adjustment to the plot area. Deafults to adding and subtracting 1 from the longitudes.

yoff

Adjustment to the plot area. Deafults to adding and subtracting 1 from the latitudes.

textcoord

Not used.

frac

Not used.

max.lwd

The maximum line with around the circle.

cuts

Number of values to plot in the legend. Defaults to 5.

specs

A list with species names. Defaults to species{}.

xpos

Not used.

ypos

Not used.

cex.text

Size of the margin text.

plotlabels

A list with plot labels. Defaults to plotlabs().

cex.mtext

Character expansion for the margin text. Defaults to 0.8.

cex.legend

Character expansion for the legend text. Defaults to 1

pos.legend

A length 2 vector describing the (x, y) position of the legend.

mtext.at

Placement of the margin text. Defaults to par("usr")[1].

...

Other arguments passed to plot(), e.g. cex.axis to change the character expansion for the axis tick labels.

Details

Spring locales are excluded. If there are cuts or less unique values those values are plotted, otherwise the 5th, 25th, 50th, 75th and 95th percentiles are plotted. Locales where the average concentration exceeds the limit are plotted with a red line around the circle.

Value

A plot.

Author(s)

Erik Lampa


NRM-MOC/MoCiS documentation built on March 27, 2023, 7:35 p.m.