Learn R Programming

riverdist (version 0.17.0)

plotmatbysurveylist: Plot Upstream Distance Between Observations of All Individuals

Description

Produces a matrix of plots (boxplots are default), with plot [i,j] giving the distribution of upstream distances from observation i to observation j, for all individuals.

Usage

plotmatbysurveylist(matbysurveylist, type = "boxplot", showN = TRUE, ...)

Arguments

matbysurveylist

A list of distance matrices returned from matbysurveylist.

type

If type is set to "boxplot", boxplots will be produced for each cell. If type is set to "confint", lines denoting an approximate 95 percent confidence interval for the mean will be produced instead. If type is set to "dotplot", a jittered dotplot will be produced for each cell, which will be the most appropriate if sample sizes are small. Defaults to "boxplot".

showN

Whether to display the sample size for each cell. Defaults to TRUE.

...

Additional plotting arguments.

Author

Matt Tyers

See Also

upstream, upstreammatbysurvey

Examples

Run this code
data(Gulk, smallset)
matbysurveylist <- matbysurveylist(unique=smallset$id, survey=smallset$flight, seg=smallset$seg, 
   vert=smallset$vert, rivers=Gulk)
plotmatbysurveylist(matbysurveylist)
plotmatbysurveylist(matbysurveylist,type="confint")
plotmatbysurveylist(matbysurveylist,type="dotplot")
   
data(fakefish)
# matbysurveylist <- matbysurveylist(unique=fakefish$fish.id, survey=fakefish$flight, 
#   seg=fakefish$seg, vert=fakefish$vert, rivers=Gulk)
# plotmatbysurveylist(matbysurveylist)

Run the code above in your browser using DataLab