Description Usage Arguments Author(s) See Also Examples
Function to draw a climograph based on precipitation and temperature data.
1 2 3 4 5 6 7 | climograph(pcp, tmean, tmx, tmn, na.rm=TRUE,
from, to, date.fmt="%Y-%m-%d",
main="Climograph",
pcp.label="Precipitation, [mm]",
tmean.label="Temperature, [\U00B0 C]",
pcp.col="lightblue",
tmean.col="red")
|
pcp |
variable of type zoo with monthly, daily or subdaily precipitation data. |
tmean |
variable of type 'zoo' with monthly, daily or subdaily mean temperature data. |
tmx |
variable of type 'zoo' with monthly, daily or subdaily maximum temperature data. |
tmn |
variable of type 'zoo' with monthly, daily or subdaily minimum temperature data.
ONLY used (togheter with |
na.rm |
Logical. Should missing values be removed? |
main |
Character representing the main title of the plot. |
pcp.label |
Character used in the legend to represent the monthly average precipitation (mostly thought for languages different from English). |
tmean.label |
Character used in the legend to represent the monthly average temperature (mostly thought for languages different from English). |
pcp.col |
Color used in the legend to represent the monthly average precipitation. |
tmean.col |
Color used in the legend to represent the monthly average temperature. |
from |
OPTIONAL, used for extracting a subset of values. |
to |
OPTIONAL, used for extracting a subset of values. |
date.fmt |
Character indicating the format in which the dates are stored in dates, from and to. See |
Mauricio Zambrano-Bigiarini, mzb.devel@gmail
1 2 3 4 5 6 7 8 9 10 | ######################
## Ex1: Loading the DAILY precipitation, maximum and minimum air temperature at
## station Maquehue Temuco Ad (Chile)
data(MaquehueTemuco)
pcp <- MaquehueTemuco[, 1]
tmx <- MaquehueTemuco[, 2]
tmn <- MaquehueTemuco[, 3]
## Plotting the climograph
m <- climograph(pcp=pcp, tmx=tmx, tmn=tmn, na.rm=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.