p_scatter: Scatter plot of 2 or more time-series

Description Usage Arguments Value Author(s) Examples

Description

The reference time-series is the first of the list. The scatter plot regards only the common dates of the series. In addition to the plot, a linear function is adjusted forcing or not the interception by the origin.

Usage

1
2
3
4
5
6
7
p_scatter(
  files,
  intercept.zero = FALSE,
  remove.zero = FALSE,
  lg.axis = c(NA, NA),
  title = "Title"
)

Arguments

files

List of file names to proceed

intercept.zero

TRUE/FALSE (default) force the interception by origin

remove.zero

TRUE / FALSE (default) remove the records with Value = 0 (e.g. precipitations)

lg.axis

Legend list for axis x & y (default = NA)

title

Title of the plot (default: Title)

Value

a table named "result" with 5 columns : variable name, size of the sample, correlation coefficient, regression line slope, interception

Author(s)

P. Chevallier - Oct 2017-Jan 2019

Examples

1
2
3
4
5
6
## Not run: 

result <- p_scatter(files = c("foo1.RData","foo2.RData"),
          intercept.zero = TRUE)

## End(Not run)

htsr documentation built on Jan. 3, 2022, 5:10 p.m.