plotAvgTemp: Plot average temperature

View source: R/plotAvgTemp.R

plotAvgTempR Documentation

Plot average temperature

Description

plotAvgTemp builds a bar plot of time average temperature and two line plots with maximum and minimum temperature.

Usage

plotAvgTemp(
  mydata,
  temp = "temp",
  avg.time = "1 month",
  ylabel = "Temperatura [C]",
  title = ""
)

Arguments

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

Value

A plot with average, min and max temperature in a given range of time.

Note

plotAvgTemp uses openair::timeAvearge to compute average.

See Also

plotStabilityClass(), plotAvgRad()

Examples

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

Simularia/simulariatools documentation built on Nov. 9, 2023, 12:36 p.m.