mocis2d | R Documentation |
Creates a 2d map showing the average concentrations of the contaminants for each locale.
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, ...)
mocis |
The output from |
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 |
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 |
xpos |
Not used. |
ypos |
Not used. |
cex.text |
Size of the margin text. |
plotlabels |
A list with plot labels. Defaults to |
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 |
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.
A plot.
Erik Lampa
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.