GraphicParameters: Loads graphic parameters

Description Usage Arguments Details Value Author(s) Examples

Description

Sets the parameters for the Google maps and the plotting area of the surfaces produced by the model.

Usage

1
GraphicParameters(Guardrail = 0.05, nring = 20, transp = 0.4, gridsize = 640, gridsize2 = 300, MapType = "roadmap", Location = getwd(), pointcol = "black")

Arguments

Guardrail

Sets the extent of the guardrail around the points. This will fix the size of the profile created and printed to the map. Defaults to 10% (0.05 in each direction), must be a postive number.

nring

The number of rings of the contours and raster image plots produced by PlotGP and CreateMaps, defaults to 20. Generally looks good in the 10-30 region.

transp

The transparasncy of the raster image produced by PlotGP and CreateMaps, defaults to 0.4. Must be between 0 and 1, with 0 being completely transparent and 1 being completely opaque .

gridsize

The gridszise of the Rgoogle maps, fed to the function GetMap. Google has a maximum gridsize of 640 which is the default, can be betwene 0 and 640.

gridsize2

The gridsize of the geoprofile and subequent raster images produced by PlotGP and CreateMaps, defaults to 300. Note, increasing this will increase the computational time, potentially signifcantly. Recommend 150-450, for very high reslution profiles it can be increased, but building the profile in ThinandAnlasye will take substantially more time.

MapType

The Google map type of the map produced. Fed to GetMap, defaults to "roadmap" but can be any one of: "roadmap","mobile","satellite", "terrain" or"hybrid".

Location

The filepath that Google maps, surfaces and outputs will be saved. Defaults to the working directory. Needs to be working for map generation to take place, check your computer has given R access permissions.

pointcol

The colour of the points produced by PlotGP and CreateMaps, defaults to "black".

Details

This function loads in and sets all of the graphic parameters used in the resulting map generation, model and plotting. The Location must be set to a useable filepath. The deafults will produce clear plots, nring and MapType can be manually edited in the console at a later point when producing desiered surfaces using PlotGP.

Value

Guardrail

see description above

nring

see description above

transp

see description above

gridsize

see description above

gridsize2

see description above

MapType

see description above

Location

see description above

pointcol

see description above

Author(s)

M.D. Stevenson

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 

### Load in Data with LoadData

LoadData(Data=mydata)

### Set Graphics Parameters with defaults

GraphicParameters()

### Change maptype to "satellite"

GraphicParameters(MapType = "satellite")


## End(Not run)

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