save.boxplot: Save CES boxplot dataset

View source: R/save.boxplot.R

save.boxplotR Documentation

Save CES boxplot dataset

Description

Creates a datafile containing summary boxplot data to use as reference for site-specific plots

Usage

save.boxplot(data=NULL, annual=TRUE, species=TRUE, year=0, filename='bxp', ...)

Arguments

data

a CES dataset created by readces

annual

logical, if TRUE create boxplot summary data by year

species

logical, if TRUE create boxplot summary data by species

year

numeric, if species=TRUE, the year for which to create the summary

filename

a character string to use as the filestem, see details

...

further arguments passed to siteplot, possibly one or more of effort=, age=, subset=

Details

Saves the necessary data to create a boxplot summarising site-specific captures using siteplot. If annual=TRUE, the filename will expand to 'filename_year.RData', if species=TRUE then the data will be saved to 'filename_speciesxxxx.RData', where xxxx is the year. If year is not specified then the last year present in the dataset will be assumed. Data may be reloaded by using load.boxplot.

Value

None. Used for its side effect of creating one or two (.RData) files.

Author(s)

Rob Robinson

See Also

siteplot, load.boxplot

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

btorobrob/cesr documentation built on June 9, 2025, 5:39 a.m.