Description Usage Arguments Details Author(s)
A plot method to easily obtain a graphical representation of the data, with several options to enable coding of some variables. For example, hauls can be colour coded, and weighting variables used to control point size.
1 2 3 4 |
x |
a |
scale |
logical, if |
col |
the color of points. This can also be used to colour points by a factor variable such
as |
pch |
the plotting symbol. This can also be the name of a (factor) variable in the data set |
legend |
logical, if |
weight |
the weights that will decide bubble sizes. Can be a variable or a vector |
leg.posx |
position of legend. This can be text such as "topleft", "bottomright" etc, or
specific |
leg.posy |
if |
leg.cex |
size of legend |
leg.bty |
the box type for the legend. Defaults to |
col.palette |
the color palette to use by default; can be |
xlim |
range of x-values |
... |
additional arguments that will be passed to the |
A lot of the models used are hierarchical, with random effects on hauls. Therefore, to see the
variation in hauls graphically, you can pass col = "haul"
and the proportions will be
coloured differently for each haul.
The same idea is applied to plotting character (pch
). To use a different plotting
character for each covariate (e.g., mesh size), simply pass pch = mesh
into the
function. However, note that using pch
and col
will not be easy to see trends
unless they are very clear. It is recommended that you use both symbol and colour only if there
are individual points you wish to investigate, rather than for finding trends, which is best
done using multiple plots and colour.
Tom Elliott
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.