plotVarRel: Plot two Environmental variables relationship

Description Usage Arguments Examples

Description

Plot two Environmental variables relationship

Usage

1
2
plotVarRel(varX, varY, startDate = NULL, endDate = NULL,
  trend = FALSE, wsUrl = "www.opensilex.org/openSilexAPI/rest/", token)

Arguments

varX

uri of the variable to plot in X axis, from the variableList function or the web service directly

varY

uri of the variable to plot in Y axis, from the variableList function or the web service directly

startDate

date from which to plot

endDate

date to which to plot

trend

logical, draw the trend of the scatterplot

wsUrl

url of the webservice

token

a token from getToken function

Examples

1
2
3
4
5
6
7
8
9
 initializeClientConnection(apiID="ws_private", url = "www.opensilex.org/openSilexAPI/rest/")
 aToken <- getToken("guest@opensilex.org","guest")
 token <- aToken$data
 vars <- variableList(token = token)
 vars
 plotVarRel( vars$value[1],
       vars$value[2],
       token = token,
       trend = TRUE)

niio972/variablesStudy documentation built on May 3, 2019, 3:21 p.m.