Learn R Programming

plgraphics (version 1.2)

d.river: Chemical Compounds in a Swiss River, Time Series

Description

This time series of chemical concentrations can be used to research the activities of photosynthesis and respiration in a river.

Usage

data("d.river")

Arguments

Format

A time series with 9792 observations (10 minutes interval) on the following 12 variables.

date

Date of the observation, class Date

hour

Hour

pH

pH

O2

concentration of Oxygen

O2S

Oxygen saturation value

T

Temperature [deg C]

H2CO3

Carbon dioxide concentration in the water

CO2atm

Carbon dioxide concentration in the atmosphere

Q

flow

su

sunshine

pr

precipitation

ra

radiation

Examples

Run this code
data(d.river)
range(d.river$date)
t.i <- d.river$date < as.Date("2010-03-31")

plyx(~date, ~O2, data=d.river, subset=t.i & hour==14, smooth=FALSE)

d.river$Date <- gendateaxis(d.river$date, hour=d.river$hour)
plyx(O2~Date, data=d.river, subset=t.i, type="l")

plyx(O2+T+ra~Date, data=d.river, subset=t.i & hour==14, 
  smooth.par=0.5, smooth.xtrim=0.03, ycol=c(O2="blue",ra="red"))

Run the code above in your browser using DataLab