tracking_chart: tracking_chart

View source: R/tracking_chart.R

tracking_chartR Documentation

tracking_chart

Description

Build base tracking chart using ggplot

Usage

tracking_chart(countries = TRUE, states = TRUE, res = 110, ...)

Arguments

countries

Show country borders. Default TRUE.

states

Show state boundaries. Default TRUE. Ignored if 'countries' is FALSE.

res

Resolution of charts; 110 (1:110m), 50 (1:50m), 10 (1:10m). Default is low. The higher the resolution, the longer the plot takes to appear.

...

Additional ggplot2::aes parameters

Value

Returns ggplot2 object that can be printed directly or have new layers added.

See Also

aes

Examples

## Not run: 
# Build map with white land areas, thin black borders
tracking_chart(color = "black", size = 0.1, fill = "white")

# 50nm resolution, no states
tracking_chart(res = 50, states = FALSE, color = "black", size = 0.1,
       fill = "white")

# 50nm resolution, coastlines only
tracking_chart(countries = FALSE, res = 50, color = "black", size = 0.1,
       fill = "white")

# Adding and modifying with ggplot functions
tracking_chart(color = "black", size = 0.1, fill = "white") +
  ggplot2::labs(x = "Lon", y = "Lat", title = "Base Tracking Chart")

## End(Not run)

timtrice/Hurricanes documentation built on Oct. 10, 2023, 8:15 p.m.