View source: R/water_WeatherStation.R
| plot.waterWeatherStation | R Documentation |
Plot method for waterWeatherStation S3 class
## S3 method for class 'waterWeatherStation'
plot(x, hourly = FALSE, sat = TRUE, date, ...)
x |
waterWeatherStation object. See |
hourly |
If TRUE will plot only hourly data, instead of all data from the waterWeatherStation object |
sat |
If TRUE, and if the waterWeatherStation object was created using a Landsat Metadata File, will plot only data from day of the satellite overpass |
date |
When sat = FALSE, the date to plot in a multi-day object |
... |
additional parameters to pass to plot() |
No return value, called for side effects (plots solar radiation, wind speed, temperature, vapor pressure and, if available, rain).
Guillermo Federico Olmedo
Other Weather station related functions:
getDataWS(),
print.waterWeatherStation(),
read.WSdata(),
read.WSdata2()
# a small window of the Landsat 7 example scene, to run quickly
MTL <- system.file("extdata", "L7.MTL.txt", package = "water")
WeatherStation <- read.WSdata(WSdata = system.file("extdata", "apples.csv", package = "water"),
date.format = "%d/%m/%Y", lat = -35.42222, long = -71.38639, elev = 201, height = 2.2,
cf = c(1, 0.2777778, 1), tz = "America/Santiago", MTL = MTL)
image.DN <- terra::rast(L7_Talca)[1:60, 1:80, drop = FALSE]
DEM <- terra::rast(DEM_Talca)[1:60, 1:80, drop = FALSE]
plot(WeatherStation, hourly = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.