Description Usage Arguments Details Author(s) See Also Examples
Simple plotting of a meteorological series for a given point.
1 2 |
object |
A data frame with daily meteorological data (in this case |
index |
An integer to indicate the point in the |
var |
The meteorological variable to be plotted. |
fun |
The name of a function to be calculated for summaries (only valid if |
freq |
A string giving an interval specification for summaries (e.g., |
dates |
An object of class |
months |
A numeric vector to indicate the subset of months for which plotting is desired (e.g. |
add |
A flag to indicate wether drawing should be done on the current plot (using function |
... |
Additional parameters for functions |
Daily precipitation is plotted using bars (i.e. type = "h"
when calling plot
). Otherwise the function draws lines (i.e. type = "l"
when calling plot
). If object
is of class SpatialPointsDataFrame-class
then the function reads the meteorological data to be plotted from the disk.
Miquel De Cáceres Ainsa, Biodiversity and Landscape Ecology Laboratory, Centre Tecnologic Forestal de Catalunya
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(examplegridtopography)
data(exampleinterpolationdata)
#Creates spatial topography points from the grid
p = 1:2
spt = as(examplegridtopography, "SpatialPointsTopography")[p]
#Interpolation of two points for the whole time period (2000-2003)
mp = interpolationpoints(exampleinterpolationdata, spt)
#Plot interpolated meteorological series
meteoplot(mp,1, ylab="Daily mean temperature")
meteoplot(mp,1, ylab="Monthly mean temperature", fun=mean, freq="months")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.