plotStation {clim.pact}R Documentation

Plots monthly station records.

Description

Plots data in the monthly station records. The data may be read through getnacd, getnordklim, getdnmi, or created using station.obj. The commands avail.elem, avail.locs can be used to identify the station records available (in a given subdirectory).

Usage

plotStation(obs,l.anom=TRUE,mon=NULL,
                        leps=FALSE,out.dir="output",what="b",trend=TRUE,std.lev=TRUE,
                        type="b",pch=21,col="grey30",lwd=1,lty=1,add=FALSE,
                        main=NULL,sub=NULL,xlab=NULL,ylab=NULL,normal.period=NULL,method="rowMeans")

Arguments

obs A climate station series.
l.anom flag: T -> plot anomalies.
mon select month to plot, A value of 0 plots all months. mon=c(12,1,2) plots the DJF mean.
leps Flag: T -> produce EPS files (hard copy).
out.dir Directory where to store hard copies.
what "t"=timeseries; "d"=distribution; "b"=both; "n"=no graphics but return results.
trend show best-fit polynomial (5th order) trend
std.lev show +/- sd levels.
type same as in plot.
pch same as in plot.
col colour, same as in plot.
lwd line width, same as in plot.
lty line type, same as in plot.
add TRUE adds a time series to previous (see link{grd.box.ts}).
main Preset main title (see plot).
sub subtitle
xlab x label
ylab y label
normal.period Normal period. NULL uses the entire data. Set to c(1961,1990) for the last normal period.
method what to plot (e.g. rowMeans or rowSums)

Value

a <- list of "monthly.station.record" class:
val The monthly values (a 12-column matrix with one column for each year).
station station number.
yy The years of observation (vector).
lat,lon Latitude and longitude of the location.
x.0E65N,y.0E65N Distance in km from 0E, 65N.
location Name of location .
wmo.no WMO number.
start Start of observatins from this location.
yy0 First year in current record.
ele Code of theelement.
obs.name Name of the element.
unit Unit of the element.
country The country in which the location is located.
quality Code/description for data quality.
found Flag: T - the data requested was found.
ref Reference for the data set.

Author(s)

R.E. Benestad

Examples

## Not run: 
data(tromsoe.t2m)
plotStation(tromsoe.t2m)
## End(Not run)

[Package clim.pact version 2.2-15 Index]