itsDisp {its}R Documentation

Display Methods for Irregular Time-Series Objects

Description

Display methods for objects of class "its".

Details

plot is the method for plotting irregular time-series objects. All series are displayed on a single set of axes, by default using different colours, linetypes, and widths. If the vectors defining these attributes are short, they are cycled. lab and leg are alternatives for labelling the curves - these are located using function labcurve() from package Hmisc on CRAN.

print is the method for printing irregular time-series objects. The format for the dates is determined at the time the 'its' object is created.

Value

The methods are called for their side-effects.

Usage

plot(x,y,colvec=1:ncol(x),type="l",ltypvec=1,lwdvec=1, leg=FALSE,lab=FALSE,yrange,format,at,interp=c("linear","none"),...) print(x,...)

Arguments

x
an object of class "its"
y
missing
type
plot type, "l" for line, "p" for point, "b" for both - see par.
colvec,ltypvec,lwdvec
vectors of colour codes, line types, and line widths: see par.
leg
logical flag to display legend; uses labcurve in package Hmisc for auto-position.
lab
logical flag to display labels; uses labcurve in package Hmisc for auto-position.
yrange
ordinate range for display.
format
a formatting string, see format.POSIXct, for the axis dates
at
a vector of POSIX dates defining tickmark locations on axis: see axis.POSIXct
interp
a flag, indicating for plot of type line, how NA vallues are interpolated
...
further arguments passed to or from other methods: for plot passed to plot.; for print passed to print.default

Author(s)

Giles Heywood

See Also

ts, POSIXct, itsFile, itsLags, itsJoin, itsTimes, itsSubset, itsFin, itsDisp, itsInfo, itsCumdif, itsArith itsInterp

Examples

b <- newIts(1:60,ncol=3)
plot(b,colvec=c(1,7),lwdvec=1:2,ltypvec=1:2,lab=TRUE)
print(b)
as.its(matrix(1:60,20,3))

[Package its version 1.1.1 Index]