plotraster: Plot a semi-regular grid as a ggmap.

Description Usage Arguments Value Examples

Description

Plot a semi-regular grid as a ggmap.

Usage

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)

Arguments

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

Value

a ggmap object.

Examples

1
plotraster(aod20150211, basegrid, id = "aodid", zvar = "aod47")

allanjust/aodlur documentation built on May 10, 2019, 9:22 a.m.