plotmap: Plot a geographical map

Description Usage Arguments Author(s) See Also Examples

Description

Plots a geographical map using ggplot2. Select between lines or polygon plotting.

Usage

1
    plotmap(mymap,projected=FALSE,polygon=FALSE)

Arguments

mymap

An object containing land contours. Preferably as read from e.g. GSHHS using getmapdata

projected

Boolean indicating geographical or map projected plot

polygon

Boolean indicating whether line or filled continent should be used

Author(s)

Øystein Godøy (o.godoy@met.no)

See Also

getmapdata

Examples

1
2
3
4
5
    # Plot projected map with polygons
    plotmap(tmp,type="line",projected=T,polygon=T,colour="black",fill="dark green")
    # Same as above, but truncate map
    plotmap(tmp,type="line",projected=T,polygon=T,colour="black",fill="dark green")
+coord_cartesian(xlim=c(-2500,2500),ylim=c(-4000,1000))

steingod/R-makemymap documentation built on May 30, 2019, 2:31 p.m.