plotmatbysurveylist: Plot Upstream Distance Between Observations of All...

Description Usage Arguments Note Author(s) See Also Examples

View source: R/apps_of_direction.R

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

1

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.

Note

Building routes from the river mouth to each river network segment and/or distance lookup tables will greatly reduce computation time (see buildsegroutes).

Author(s)

Matt Tyers

See Also

upstream, upstreammatbysurvey

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

riverdist documentation built on Sept. 10, 2021, 9:06 a.m.