View source: R/plotStabilityClass.R
plotStabilityClass | R Documentation |
Histogram plot of stability classes by season or hour.
plotStabilityClass(
mydata,
date = "date",
sc = "sc",
type = "season",
locale = NULL
)
mydata |
A dataframe containing data to plot. |
date |
The name of the column representing date and time. Data must be of
class |
sc |
The name of the column that represents the stability class (default = "sc"). |
type |
Specify how the data are to be split and plotted. Accepted values are "season" (default) and "hour". |
locale |
Set the locale for day and month names. The system locale is used by default, but you can specify a different one from the supported ones listed in stringi::stri_locale_list(). All other labels are in English by default or in Italian if its locale is specified. |
Numerical values of stability classes are mapped as: 1 = A, 2 = B, ..., 6 = F.
A ggplot2
plot.
stabilityClass()
, plotAvgRad()
, plotAvgTemp()
data("stMeteo")
# Season plot of stability class pgt
plotStabilityClass(stMeteo, date = "date", sc = "pgt", type = "season")
# Hourly plot of stability class pgt
plotStabilityClass(stMeteo, date = "date", sc = "pgt", type = "hour")
# Override default locale
plotStabilityClass(
stMeteo,
date = "date",
sc = "pgt",
type = "season",
locale = "it_IT"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.