plotNASCDistribution: Plot NASC distribution to file

Description Usage Arguments Value Examples

View source: R/rstox_reports.r

Description

Plots both original and resampled NASC distributions; histogram of NASC transect means together with distribution of resampled NASC values (line). Probability densities, component density, are plotted (so that the histogram has a total area of one). Plot is exported to a tif- or png-file

Usage

1
plotNASCDistribution(projectName, format = "png", filetag = NULL, ...)

Arguments

projectName

The name or full path of the project, a baseline object (as returned from getBaseline or runBaseline, og a project object (as returned from openProject).

format

The file format of the saved plot, given as a string naming the function to use for saving the plot (such as bmp, jpeg, png, tiff), with filename as its first argument. Arguments fo the functions are given as .... Dimensions are defaulted to width=5000, height=3000, resolution to 500 dpi. If format has length 0, the plot is shown in the graphics window, and not saved to file.

filetag

A character string to append to the file name (before file extension).

...

Parameters passed on from other functions.

Value

Plot saved to file

Examples

1
2
3
4
projectName <- "Test_Rstox"
# Run bootstrap before plotting:
boot <- runBootstrap(projectName, nboot=10, seed=1, bootstrapMethod="AcousticTrawl")
plotNASCDistribution(projectName)

Sea2Data/Rstox documentation built on April 18, 2018, 11:11 p.m.