plotAvgTemp | R Documentation |
plotAvgTemp
builds a bar plot of time average temperature and two
line plots with maximum and minimum temperature.
plotAvgTemp(
mydata,
temp = "temp",
avg.time = "1 month",
ylabel = "Temperatura [C]",
title = ""
)
mydata |
A data frame containing fields date and temp |
temp |
Name of the column representing temperature |
avg.time |
This defines the time period to average to (see openair::timeAverage). Default is "1 month". |
ylabel |
The label to be plot along y axis |
title |
Option plot title |
A plot with average, min and max temperature in a given range of time.
plotAvgTemp
uses openair::timeAvearge
to compute average.
plotStabilityClass()
, plotAvgRad()
# Plot histogram with monthly averages together with maxima and minima
# curves
data(stMeteo)
plotAvgTemp(stMeteo)
plotAvgTemp(stMeteo, temp = "temperature",
avg.time = "1 month", ylabel = "Temperatura [C]")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.