Description Usage Arguments Details Value References Examples
View source: R/generateaWhereStdDevChart.R
generateaWhereStdDevChart
Generate a plot using aWhere weather data with standardized
formatting and standard deviations included.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
data |
data frame in which variables are named according to the aWhere API conventions (required) |
variable |
character string denoting the variable to chart. Acceptable values are accumulatedGdd, accumulatedPet, accumulatedPpet, accumulatedPrecipitation, gdd, pet, precipitation, maxRH, minRH, solar,averageWind,dayMaxWind or rollingavgppet. (required) |
title |
character string of title to assign to the plot. (required) |
e_precip |
logical, if set to TRUE, effective precipitation will be calculated and charted based on e_threshold. Default is set to FALSE. (optional) |
e_threshold |
numeric value (in milimeters) for the daily maximum used to calculate effective precipitation if e_precip is set to TRUE. (optional) |
doRoll |
Boolean for whether a rolling calculation should be done to smooth the data (optional) |
rolling_window |
numeric value for the number of days to use in rolling average calculations, only applicable if the variable parameter is set to "rollingavgppet". Default value is 30. (optional) |
yAxisLimits |
Used to set the limits of the y axis explicitly. If used, must be a two element vector of the form c(minValue, maxValue) (optional) |
size_font_main_title |
Font size of main title of graph (optional) |
size_font_axis_titles |
Font size of axes on graph (optional) |
size_font_axis_labels |
Font size of labels on axes on graph (optional) |
size_font_legend_entries |
Font size of entries in lengend on graph (optional) |
line_width |
Font size for line geometries on charts (optional) |
This function makes basic line plots using the same structure, formatting and inputs utilized in the generateaWhereChart function, but adds one standard deviation's shading above and below the long-term normal line. This function is meant to help users understand whether the current weather conditions are significantly outside the norm.
Refer to the documentation for generateaWhereChart for more details on the parameter inputs and definitions. The input variables allowed are the same as those allowed for the generateaWhereChart function, but it should be noted that as the datespan increases, the standard deviation for variables which are accumulations is likely to become increasingly wide.
plot object
http://developer.awhere.com/api/reference/
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.