gsodPlot | R Documentation |
This function aims at visualizing GSOD data, both raw/adjusted for outliers and imputed, as well as linear trends of mean, minimum and maximum daily air temperature.
gsodPlot(
fls_orig = NULL,
fls,
stations,
prm = "TEMP",
type = c("original", "trends", "both"),
...
)
fls_orig |
See argument |
fls |
Character vector containing filepath(s) to the imputed GSOD data
set(s), usually derived from |
stations |
Character. Name(s) of the station(s) corresponding to |
prm |
Character, default is "TEMP". Determines which parameter to
visualize. If |
type |
Character. Determines the plot type, one of |
... |
Additional arguments passed to |
An object of class ggplot
.
Florian Detsch
# Visualize trends in daily mean, minimum, and maximum air temperature
lst = split(
eastafrica
, f = paste(
eastafrica$PlotId
, eastafrica$Status
, sep = ","
)
)
cleansed_data = lst[
grep(
"cleansed"
, names(lst)
)
]
filled_data = lst[
grep(
"filled"
, names(lst)
)
]
gsodPlot(
cleansed_data
, filled_data
, stations = c("NAIROBI JKIA", "KILIMANJARO INTL")
, type = "trends"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.