Description Usage Arguments Value See Also Examples
View source: R/heatmap_single.R
Visualize hourly atmospheric data for a single monitor using a heatmap, with optional data labels. To visualize multiple monitors on a heatmap, see heatmap_cross. Relevant information (such as date ranges, averaging methods, facets, and min/max values in the set) will be reported automatically in the visualization.
1 2 3 4 5 6 7 8 9 10 11 12 | heatmap_single(
variable_of_interest,
site_of_interest = "",
cap_value = NA,
cap_color = "red",
data_labels = TRUE,
digits = 2,
date_breaks = "1 day",
text_color = "black",
dataset = data_hourly,
location_data = data_meta
)
|
variable_of_interest |
The variable of interest (not in quotation marks) which to visualize |
site_of_interest |
Character; the label (or a portion of the label) of the monitor to visualize |
cap_value |
Numeric, optional; values at or above to be colored serpately from the regular continuous scale. See add_cap for more information. |
cap_color |
Character; color for values at or above the |
data_labels |
Logical; label each cell in the heatmap with the appropriate value |
digits |
Numeric; the number of digits to report |
date_breaks |
Character; the frequency of x-axis label breaks |
text_color |
Character; the color of data label text |
dataset |
The hourly data set to visualize |
location_data |
Data set containing latitude and longitude data |
Data visualization: hourly heatmap colored by a specified numeric variable, with date on the x-axis and hours on the y-axis.
Other STAD visualizations:
heatmap_cross()
,
map_oa()
,
map_stad()
,
ts_line()
,
ts_variation()
1 2 | heatmap_single(pm25_epa_2021, "Lighthouse", dataset = july_api_hourly, location_data = july_api_meta)
heatmap_single(temperature, "Lighthouse", cap_value = 85, cap_color = "green", data_label = FALSE, dataset = july_api_hourly, location_data = july_api_meta)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.