Description Usage Arguments Details Value Examples
View source: R/generateaWhereHistogram.R
generateaWhereHistogram
Generate a histogram of 1-2 weather variables with standardized formatting.
1 2 3 4 5 6 7 8 |
data |
data frame containing multiple observations - observations can be across time or locations (required) |
variable |
character string denoting the column name (from data) to chart. (required) |
compare |
logical, if set to TRUE function will chart a second variable, defined by the parameter compare_var. Default set to FALSE. (optional) |
compare_var |
character string denoting the column name of the second variable to chart (optional) |
xlabel |
character string denoting the label to give to the x axis of the chart (optional) |
title |
character string denoting the title to assign to the plot - default is the date span of data (optional) |
This function generates a histogram with standardized formatting in ggplot's gray theme. This function was created to work with the large datasets covering entire regions transferred by aWhere to clients, enabling them to examine variation in the current conditions of a region for any variable, as well as compare current vs. long-term normals. Technically, however, the function can work with any dataset, since unlike with the generateaWhereChart and generateaWhereStdDevChart functions, the input variable names are not restricted.
plot object
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.