Learn R Programming

simulariatools (version 3.1.0)

plotAvgRad: Plot hourly average radiation

Description

Plot a histogram with hourly average of solar radiation, together with hourly maxima for June and December.

Usage

plotAvgRad(
  mydata,
  date = "date",
  rad = "radg",
  ylabel = NULL,
  title = "",
  locale = NULL
)

Value

A ggplot2 plot.

Arguments

mydata

A data frame containing data to plot.

date

The name of the column representing date and time. Data must be of class POSIXlt or POSIXct (default = "date"). If the timezone is unspecified, it is set to GMT.

rad

Name of the column representing radiation (default = "radg").

ylabel

The label along the y axis. If missing a default label is plotted.

title

Optional plot title

locale

Locale to use for legend. Default is English, the only other one currently supported is Italian.

See Also

plotStabilityClass(), plotAvgTemp()

Examples

Run this code
data(stMeteo)
plotAvgRad(stMeteo, date = "date", rad = "radg")

Run the code above in your browser using DataLab