dot-add function

Add Items to Plots

Add Items to Plots

Routines to add various items to existing plots.

.addAxis(xlim, ylim, tckLab, tck, tckMinor, ...) .addAxis2(side=1:2, xlim, ylim, tckLab, tck, tckMinor, ...) .addBubblesLegend(radii.leg, usr.xdiff, usr.ydiff, symbol.zero, symbol.fg, symbol.bg, legend.pos, legend.breaks, legend.type, legend.title, legend.cex, ...) .addCorners(polys, ptSummary) .addFeature(feature, data, polyProps, isEventData, cex=NULL, col=NULL, font=NULL, pch=NULL, ...) .addLabels(projection=NULL, ...) .addProps(type, polyProps, ...)

Arguments

  • xlim: numeric -- limits of the x-axis

  • ylim: numeric -- limits of the y-axis

  • tckLab: character -- tick labels

  • tck: numeric -- length of tick marks as a fraction of the smaller of the width or height of the plotting region

  • tckMinor: numeric -- length of minor tick marks between major tick marks

  • ...: dots -- additional arguments used by functions within function

  • side: numeric -- side of the plot (1=bottom, 2=left, 3=top, 4=right)

  • radii.leg: numeric -- radii of bubbles in legend

  • usr.xdiff: numeric -- difference between the limits of x

  • usr.ydiff: numeric -- difference between the limits of y

  • symbol.zero: character -- character to use for plotting zero values

  • symbol.fg: numeric -- colour of bubble outline

  • symbol.bg: numeric -- colour of bubble fill

  • legend.pos: character -- one of legends positional strings (e.g., `bottomleft')

  • legend.breaks: numeric -- break values for categorizing z-values

  • legend.type: character -- display format for legend

  • legend.title: character -- title for legend

  • legend.cex: numeric -- size of legend text

  • polys: PolySet -- polygon data file

  • ptSummary: numeric -- used in computation of distance from candidate points to corner

  • feature: character -- if 'points', add 'data' using 'points()'

    if 'labels', add 'data' using 'text()'

  • data: data.frame -- one of the data structures used in 'PBSmapping'

  • polyProps: data.frame -- polygon properties, like a 'PolyData' object

  • isEventData: logical -- if TRUE, look for 'EID' column in 'data'

  • cex: numeric -- value to magnify text and symbols relative to the default

  • col: character|numeric -- colour for added feature

  • font: numeric -- font number for added feature

  • pch: numeric -- plotting symbol for added feature

  • projection: character -- projection of plot on which to add label (either 'LL' or 'UTM')

  • type: character -- data structure type, where 'e' = 'EventData' and 'p' = 'PolyData'

Details

Internal functions add features to an existing map plot.

Returns

Nothing in particular.

Author(s)

Nicholas M. Boers, Software Engineer, Jobber, Edmonton AB

Maintainer: Rowan Haigh, Program Head -- Offshore Rockfish

Pacific Biological Station (PBS), Fisheries & Oceans Canada (DFO), Nanaimo BC

locus opus: Remote office, Vancouver BC

Last modified Rd: 2024-09-03

See Also

In package PBSmapping:

plotMap, addBubbles, addPolys, addLabels, addStipples