CreateMaps: Create maps and prior

Description Usage Arguments Details Value Author(s) Examples

Description

Creates the base map area for the plotting and calculates the prior, has the option to plot the plot the prior on a google map. Note: needs an internet connection to extract the map information from Google.

Usage

1
CreateMaps(PlotPrior = T)

Arguments

PlotPrior

TRUE of FALSE. If TRUE plots a map of the data and prior at a default zoom value.

Details

This is the essential step in the model where the search area is defined around the data and the prior tau is generated. It is at this stage that the prior on soruce emergence (tau) is plotted (if PlotPrior =T) and the user can examine the map area and prior tau to determine if they are meaningful.

Value

xmin

a value for the minimum dimensions of the x axis (longitude)

xmax

a value for the maximum dimensions of the x axis (longitude)

ymin

a value for the minimum dimensions of the y axis (latitude)

ymax

a value for the maximumdimensions of the y axis (latitude)

priorx

a value for the centre of the prior in the x dimension

priory

a value for the centre of the prior in the y dimension

xvec

a vector representing the size of the x axis

yvec

a vector representing the size of the y axis

xmat

a matrix of length xvec

ymat

a matrix of length yvec

priormat

the matrix of prior vaules of tau

Author(s)

MD, Stevenson

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 

### Load in data
### Assign a matrix of lon lat values to mydata

LoadData(Data=mydata)

### Load the model and graphic parameters (using defaults here)

ModelParameters()
GraphicParameters()

### Create the prior and maps

CreateMaps(PlotPrior = T)

### Create prior without the map

CreateMaps(PlotPrior = F)



## End(Not run)

stevenlecomber/Rgeoprofile-1.1.0 documentation built on May 30, 2019, 4:46 p.m.