plot.waterWeatherStation: Plot method for waterWeatherStation S3 class

View source: R/water_WeatherStation.R

plot.waterWeatherStationR Documentation

Plot method for waterWeatherStation S3 class

Description

Plot method for waterWeatherStation S3 class

Usage

## S3 method for class 'waterWeatherStation'
plot(x, hourly = FALSE, sat = TRUE, date, ...)

Arguments

x

waterWeatherStation object. See read.WSdata

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()

Value

No return value, called for side effects (plots solar radiation, wind speed, temperature, vapor pressure and, if available, rain).

Author(s)

Guillermo Federico Olmedo

See Also

Other Weather station related functions: getDataWS(), print.waterWeatherStation(), read.WSdata(), read.WSdata2()

Examples

# 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)

water documentation built on Nov. 25, 2026, 5:08 p.m.