"Overlays" for adding maps to existing ggplots.

overlay_map_world(g)
  overlay_map_europe(g)
  overlay_map_usa(g)

Arguments

g

A "ggplot" object.

Value

All these functions return a ggplot object.

Details

These functions are all examples of PCAviz plot "overlays"; that is, functions that can be assigned to input argument overlay in plot(x), where x is a pcaviz object; see pcaviz-plots for more details.

See also

pcaviz-maps, map_data, world, usa

Examples

# NOT RUN {
# See the POPRES vignette for some examples of how these functions are
# used to add maps to PCAviz plots.
vignette("popres")
# }