multiMap: Create a multi-panel figure with maps having consistent...

Description Usage Arguments Examples

Description

Create a multi-panel figure with maps having consistent scales.

Usage

1
multiMap(nrows = 1, ncols = 1, lonLims, latLims, adjLonRange = TRUE, fnc, ...)

Arguments

nrows
ncols
lonLims
latLims
adjLonRange
fnc
...

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    ## Not run: 
    library(PBSmapping)
    data(westCoastLL)
    data(WCstatesInlandPBS)
    #plot the dataset
    multiMap(nrows=1,ncols=2,lonLims=matrix(c(-125,-125,-122,-123),nrow=2),latLims=matrix(c(42,45,45,46),nrow=2),fnc=plotMap,polys=westCoastLL)
    multiMap(nrows=1,ncols=3,
             lonLims=matrix(c(-123.1,-122.9,-125,-121,-125,-121),nrow=3,byrow=T),
             latLims=matrix(c(37,40,40,45,45,48),nrow=3,byrow=T),
             fnc=plotMap,polys=westCoastLL)

    #plot using mapBubbles function
    library(PBSmapping)
    data(westCoastLL)
    data(WCstatesInlandPBS)
    #create a fake dataset
    set.seed(55)
    datt <- data.frame(Latitude=c(38,43,44,45,46,47,runif(100,37,47)),
                       Longitude=c(-123.5,-125.5,-128,-127.5,-126.5,-126.5,runif(100,-128,-124)),Z=c(1,2,3,4,5,6,rep(0,100)))
    #mapBiomass.fn(datt,xlim=c(-130,-120),ylim=c(40,49))
    windows(height=7,width=10)
    multiMap(nrows=1,ncols=3,
             lonLims=matrix(c(-126,-121,-129,-122.8,-129,-122.3),nrow=3,byrow=T),
             latLims=matrix(c(37,40,40,45,45,48),nrow=3,byrow=T),
             fnc=mapBubbles,dat=datt,col="green4",bg="lightblue")
    
## End(Not run)

nwfscMapping documentation built on May 2, 2019, 5:27 p.m.