map_stad: Map Spatio-Temporal Atmospheric Data (STAD)

Description Usage Arguments Value See Also Examples

View source: R/map_stad.R

Description

Visualize spatio-temporal atmospheric data using points on a map, colored by a specified variable. Relevant information (such as date ranges, averaging methods, facets, and min/max values in the set) will be reported automatically in the visualization.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
map_stad(
  dataset,
  variable_of_interest,
  grouping_vars = NULL,
  location_data = data_meta,
  cap_value = NA,
  cap_color = "red",
  point_size = 3,
  maptype = "toner-lite",
  zoom = 11,
  tint_alpha = 0.5,
  tint_color = "black"
)

Arguments

dataset

Data set for which to visualize

variable_of_interest

The variable of interest (not in quotation marks) which to visualize

grouping_vars

Character, optional; one or two variables for which to facet (grid) the plot by

location_data

Data set containing latitude and longitude data

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 cap_value

point_size

Numeric; size of the points on the map

maptype

Character; the qmplot class of maptype to use; see get_map for types.

zoom

Numeric; the zoom level of the map

tint_alpha

Numeric; the transparency for the background tint overlaid on the map

tint_color

Character; the color of background tint overlaid on the map

Value

Data visualization: map with data points colored by a specified numeric variable, located by a provided data frame of lat/long data.

See Also

Other STAD visualizations: heatmap_cross(), heatmap_single(), map_oa(), ts_line(), ts_variation()

Examples

1
2
3
4
5
6
map_stad(july_api_daily, pm25_atm, location_data = july_api_meta, grouping_vars = "date_tag")
map_stad(
  july_api_daily, pm25_atm, location_data = july_api_meta, grouping_vars = "date_tag",
  point_size = 5, cap_value = 50, cap_color = "green",
  maptype = "terrain", tint_color = "white"
)

gmcginnis/AirVizR documentation built on Dec. 20, 2021, 11:49 a.m.