msl.fileplot: Plotting to file options in JPEG format.

Description Usage Arguments Details See Also Examples

View source: R/msl.fileplot.R

Description

Plotting to file options in JPEG format.

Usage

1
2
msl.fileplot(x, resol = 1800, wdir = " ", file_name = " ",
  type = 1, ci = 1, header = TRUE)

Arguments

x

object of class “msl.trend” (see msl.trend) or “custom.trend” (see custom.trend).

resol

numeric, enables a user defined resolution in dpi from [300 to 1800] where 1800 is the default setting.

wdir

character string, providing the name of the directory to send output files (e.g., “C:/myproject/”). If this field is left blank the function will terminate with a warning message sent to the console.

file_name

is a character string indicating the name of the output file. There is no need to include the file extension *.jpeg. If this field is left blank the output file will be automatically saved in the defined directory (wdir) under the default name “Plot1.jpeg”.

type

numeric, enables a user defined input to select the type of chart to be plotted. 5 seperate options are available:

  • 1: The default setting provides a single 3 panel chart with the time series in the top panel, velocity in the middle panel and acceleration in the bottom panel (width = 160 mm, height = 210 mm);

  • 2: Single panel plot of time series (width = 160 mm, height = 80 mm);

  • 3: Single panel plot of velocity (width = 160 mm, height = 80 mm);

  • 4: Single panel plot of acceleration (width = 160 mm, height = 80 mm); and

  • 5: Alternative 2 panel chart with the time series in the top panel and velocity in the bottom panel (width = 160 mm, height = 150 mm).

ci

numeric, enables a user defined input to select the type of confidence interval to be displayed on the plots. The default setting (ci = 1) corresponds to a 95% confidence interval whilst ci = 2 provides a 99% confidence interval.

header

logical, if ‘TRUE’ then the station_name (if provided) in the “msl.trend” (see msl.trend) or “custom.trend” (see custom.trend) object will be passed to the main banner printed above the plot. If set to ‘FALSE’ then the banner header will be excluded. Default = TRUE.

Details

This function provides report quality JPEG format summary plots for both “msl.trend” (see msl.trend) and “custom.trend” (see custom.trend) objects. The same range of alternative screen plotting options are available via msl.screenplot.

See Also

msl.trend, custom.trend, msl.screenplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Plot to file from "custom.trend" object

data(t) # "custom.trend" object
str(t) # check object

# -------------------------------------------------------------------------
# The following call to msl.fileplot can be found in the temporary
# directory under the file name "Plot1.jpeg".
# -------------------------------------------------------------------------

wd <- tempdir() # find temp directory
msl.fileplot(t, wdir = wd) # default screen plot output

TrendSLR documentation built on Aug. 7, 2019, 9:03 a.m.