makeDiagnosticMap: Make a diagonstic map for a layer

Description Usage Arguments Details Value Color specification options

Description

A one layer map on top of a base map

Usage

1
2
3
makeDiagnosticMap(arr, type = c("contour", "filledContour", "post")[1],
  shNewMap = TRUE, shPath2Title = FALSE, shReturnInfo = FALSE,
  shLegend = TRUE, legendTitle = "", pathSave = "", ...)

Arguments

arr

Anything that can be loaded in by 'raster' package

type

The type of map that you want print

shNewMap

Should the program grab a new map or use the exisiting one

shPath2Title

Should the file provided be turned into a title for the plot? Gives a warning if a path wasn't supplied. If given a string it will just use it as a label instead

shReturnInfo

Should the information on the plotting (classes, levels and labels) be returned as a list?

shLegend

Should a legend be ploted?

legendTitle

The title for the legend

pathSave

The path that you want the saved jpeg to be in. Default is that the function does not save but just plot

...

additional parameters as explained in details.

Details

The additional variables that can be passed are to the contour from the graphics package through the raster package or points for class post maps. Convience parameters for the levels are given as follows:

levelThres

Minimum amount shown in the plot

levelLimit

The max level shown on the map

nLevels = 5

The number of levels plotted on the map

exLevels

a numeric vector specifing the levels that were already formulated i.e they existed before

levelType = c("linear", "log")[1]

The type of spacing for the levels

classColor = NA

The color specification for the graphs. It can be given in any of the three ways described in the "Color Specification' section

Value

A plot with 2 layers, the base map and the array, or just the array if 'shNewMap = FALSE'

Color specification options

NA

Paint it all black

"BW"

gray scale classes from white to black

function

Any function that gives a character vector of color specifications with a single required input of the number of colors wanted. This means any number of packages can be used to specify color with at most a simple wrapper function.


sidjai/biosplit documentation built on May 29, 2019, 9:59 p.m.