Learn R Programming

nsRFA (version 0.6-4)

SERIESPLOTS: Series plots

Description

Plots for time-series investigation.

Usage

serieplot (x, t, lim.x=c(min(x),max(x)), lim.t=c(min(t),max(t)), 
            ...)
 consistencyplot (t, cod, cex.axis=.8, mark.code=TRUE, ...)

Arguments

x
data sample
t
vector representing time (e.g. years) of data-samples defined with cod
lim.x, lim.t
plot limits
cod
array that defines the data subdivision among sites
cex.axis
dimensions of points and labels
mark.code
if TRUE (default) codes of samples are plotted on y axis
...
graphical parameters as xlab, ylab, main, ...

Value

  • consistencyplot displays time-series consistency.

See Also

plot, DISTPLOTS

Examples

Run this code
data(hydroSIMN)
annualflows[c(1:10),]
x <- annualflows["dato"][,]
y <- annualflows["anno"][,]
cod <- annualflows["cod"][,]
consistencyplot(y,cod)


for (i in unique(cod)) {
 serieplot(x[cod==i], y[cod==i], c(0,max(x)), c(min(y),max(y)),
           xlab="", ylab="D [mm]", main=i)
 readline()
}

Run the code above in your browser using DataLab