p_line_app {htsr}R Documentation

Plot lines

Description

Application of the functions p_line p_line for plotting lines. The resulting plot can be saved as .png, .jpg or .pdf files.

Usage

p_line_app(
  nbst,
  rpal = 0,
  savefig = FALSE,
  width = 8,
  height = 6,
  fileo = "plot.png"
)

Arguments

nbst

Number of time-series to be plotted (default 1)

rpal

Color palette settings 0 (default); 1 (mapalette) or 2 (manual)

savefig

Save plot as png (default FALSE)

width

Plot width (x100 pixels) (default = 8)

height

Plot height (x100 pixels) (default = 6)

fileo

Name of the plot file including extension (png, jpg or pdf) default = "plot.png")

Details

The number of time-series to be plotted is limited to 8, with option rpal = 0, 12 otherwise.

If savefig=TRUE, the plot is saved in the working directory. Following the chosen extension, the file is formatted as .png, .jpg or .pdf. The default is "plot.png".

Value

A ggplot2 object.

Author(s)

P. Chevallier - Oct 2017 - Mar 2020

See Also

p_line, p_bar

Examples

## Not run: 

p <- p_line_app(filelist = c(foo1, foo2),pset=TRUE, pfil=TRUE, rpal=1, fileo="plot23.pdf")

## End(Not run)



[Package htsr version 1.2.0 Index]