Description Usage Arguments Value Examples
Plot a semi-regular grid as a ggmap.
1 2 3 4 | plotraster(DT, basegrid, rowvar = "hdfrow", colvar = "hdfcol",
longvar = "lon", latvar = "lat", id, zvar, ggmap = TRUE, zoom = 9,
loncen = NA, latcen = NA, alpha.layer = 0.5, alpha.white.backg = 0.5,
aspratio = 1.05)
|
DT |
data.table for a single scene to be plotted |
basegrid |
data.table that contains the row, col, lon and lat of the grid |
rowvar |
character of the row name in basegrid |
colvar |
character of the column name in basegrid |
longvar |
character of the longitude name in basegrid |
latvar |
character of latitude name in basegrid |
id |
character of the ID of each cell of the grid - it has to be present both in DT and basegrid |
zvar |
character of the variable in DT the user wants to plot |
ggmap |
if TRUE (default) print the ggmap |
zoom |
integer for the zoom of the background map |
loncen |
numeric value for the longitude of the center of the background map |
latcen |
numeric value for the latitude of the center of the background map |
alpha.layer |
numeric value for the alpha of the layer |
alpha.white.backg |
numeric value for the alpha of the background map |
aspratio |
numeric value for the aspect ratio of the background map |
a ggmap object.
1 | plotraster(aod20150211, basegrid, id = "aodid", zvar = "aod47")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.