getPlots: Get various plots and reports in Rstox

Description Usage Arguments Value Examples

Description

getPlots calls all or a subset of the plotting functions in Rstox (name starting with plot).

getReports calls all or a subset of the report functions in Rstox (name starting with report).

Usage

1
2
3
getPlots(projectName, out = "all", options = "", ...)

getReports(projectName, out = "all", options = "", ...)

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).

out

A string vector giving the plot or report functions to run. See getRstoxEnv()$keywords for available keywords.

options

A string vector holding the parameters passed on to the plotting functions. These parameters overrides identically named parameters in '...'. The parameters must be formatted as R expressions (as typed into an R console), and separated by semicolons (";"). See examples below:

"Single string"

"string = 'a string'"

"String vector"

"stringvec = c('red', 'blue', 'yellow2')"

"Numeric"

"num = 1.55"

"Numeric vector"

"numvec = c(1.4e-6, 16/3, runif(3))"

"Logical"

"ok = TRUE"

"Logical vector"

"okvec = c( TRUE, FALSE, T, F, set.seed(0); runif(3)>0.3 )"

"Array"

"arr = array(runif(12), dim=3:4)"

"Function"

"fun1 = function(x) sin(rev(x))"

All the examples in one string: options = "string = 'a string'; stringvec = c('red', 'blue', 'yellow2'); num = 1.55; numvec = c(1.4e-6, 16/3, runif(3)); ok = TRUE; okvec = c( TRUE, FALSE, T, F, runif(3)>0.3 ); arr = array(runif(12), dim=3:4); fun1 = function(x) sin(rev(x)); fun3 = runif"

...

Parameters passed on to the plotting functions.

Value

A vector of file names of the plots or reports.

Examples

1
2
3
4
5
6
7
# View all parameters of plotting functions:
sapply(getFunsRstox("plot"), function(x) names(formals(x)))
projectName <- "Test_Rstox"
# Get all plots:
getPlots(projectName)
# Get all reports:
getReports(projectName)

Sea2Data/Rstox documentation built on May 14, 2019, 8:58 a.m.