
49Probability Theory
By default, the x- and y-axes are labeled with the variable name. These can be changed using xlab
and ylab arguments. For example, we obtain Figure 2.24 applying
> plot(Time, DO, type=“l”,xlab=“Time [hhmmss]”, ylab=“Dissolved
Oxygen [mg/l]”)
Then you can save, for example, as Jpeg.
The limits of x- and y-axes can be changed using xlim = c() and ylim = c(), where c()
denotes a one-dimensional array. For example, xlim = c(150000,240000) establishes the range
from 150,000 to 240,000 and ylim = c(0,5) has two elements, a minimum of 0 and a maximum of 5.
> plot(Time, DO, type=“l”,xlab=“Time [hhmmss]”, ylab=“Dissolved
Oxygen [mg/l]”, ...