Description Usage Arguments Details
This function produces a map visualization of a gridded (i.e., values specified by latitude and longitude) data set. The data will be plotted over the base map supplied
1 2 | plot_GCAM_grid(plotdata, col, map = map.rgn32, proj = robin,
proj_type = NULL, extent = EXTENT_WORLD, zoom = 0, alpha = 0.8, ...)
|
plotdata |
Data frame with the coordinates and values to be plotted. Must contain 'lat' and 'lon' columns. |
col |
Name of the column holding the data values to plot |
map |
Base map data. Default is GCAM 32-region |
proj |
Map projection to use in the display map. This should be a proj4
string, except for a few special cases. There are also symbols defined for
some frequently used projections (e.g. |
proj_type |
Either esri, epsg, or sr-org as string. These correspond to available reference types hosted by http://spatialreference.org/. |
extent |
Numeric bounds [xmin, xmax, ymin, ymax] to zoom display to. |
zoom |
A distance to buffer the bounding box extent by for on-the-fly adjustments needed when fitting area to maps. |
alpha |
Transparency of the grid data layer. Given as a number between 0 and 1, where 0 is completely transparent and 1 is completely opaque. |
... |
Other parameters passed on to |
The plot data should be in the form of a table of latitude (lat), longitude (lon), and data values. The name of the data column is given as an argument to the function, so you can have, for example, latitude and longitude columns followed by columns for time slices. Columns besides the coordinate and data columns will be ignored.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.