Description Usage Arguments Details Value Color specification options
A one layer map on top of a base map
1 2 3 |
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. |
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:
Minimum amount shown in the plot
The max level shown on the map
The number of levels plotted on the map
a numeric vector specifing the levels that were already formulated i.e they existed before
The type of spacing for the levels
The color specification for the graphs. It can be given in any of the three ways described in the "Color Specification' section
A plot with 2 layers, the base map and the array, or just the array if 'shNewMap = FALSE'
Paint it all black
gray scale classes from white to black
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.