Description Usage Arguments Value See Also Examples
View source: R/heatmap_cross.R
Visualize temporal atmospheric data for multiple monitors using a heatmap, with optional data labels. To visualize one monitor on a heatmap, see heatmap_single. 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 | heatmap_cross(
dataset,
variable_of_interest,
drop_incomplete = FALSE,
cap_value = NA,
cap_color = "red",
data_labels = FALSE,
text_color = "black",
location_data = data_meta,
digits = 2
)
|
dataset |
The hourly dataset to visualize |
variable_of_interest |
The variable of interest (not in quotation marks) which to visualize |
drop_incomplete |
Logical; drop/keep incomplete monitors, see drop_incomplete for more information. |
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 |
text_color |
Character; the color of data label text |
location_data |
Data set containing latitude and longitude data |
digits |
Numeric; the number of digits to report |
Data visualization: heatmap colored by a specified numeric variable, with time on the x-axis (and appropriate breaks & labels) and monitor labels on the y-axis arranged from north to south and separted by location.
Other STAD visualizations:
heatmap_single()
,
map_oa()
,
map_stad()
,
ts_line()
,
ts_variation()
1 2 3 | heatmap_cross(july_api_hourly, pm25_atm, location_data = july_api_meta)
heatmap_cross(july_api_hourly, pm25_atm, location_data = july_api_meta, drop_incomplete = TRUE, cap_value = 75, cap_color = "green")
heatmap_cross(july_api_daily, temperature, location_data = july_api_meta, drop_incomplete = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.