MapCA: Simple map of Canada

Description Usage Arguments See Also Examples

View source: R/MapCA.R

Description

Return a simple map of Canada using the grammar of graphics ggplot2.

Usage

1
MapCA(..., polygon.args = NULL, xlab = "Longitude", ylab = "Latitude")

Arguments

...

Other parameters passed to ggplot.

polygon.args

Parameters of the displayed polygons. See geom_polygon.

xlab, ylab

Labels of the axes.

See Also

floodnetGraphics, geom_polygon.

Examples

1
2
3
4
5
6
7
8
9
library(ggplot2)

MapCA(polygon.args = list(fill = 'white', colour = 'black'))

xd <- DemoData('descriptor')

MapCA() +
  geom_point(data = xd, aes(x = lon, y = lat), colour = 'orange') +
  coord_cartesian(xlim = c(-70,-58), ylim = c(43,50))

floodnetProject16/floodnetProject16 documentation built on Oct. 24, 2020, 11:03 p.m.