Skip to contents

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
)

Arguments

mydata

A data frame containing fields with solar radiation time series.

date

Name of the column representing date and time.

rad

Name of the column representing radiation.

ylabel

The label along the y axis.

title

Optional plot title

locale

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

Value

A ggplot2 plot.

Examples

data(stMeteo)
plotAvgRad(stMeteo, date = "date", rad = "radg")
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_bar()`).