Writes a series of images to PNGs and uses them to create ground overlays. Works only with "RasterBrick"
class objects with time dimension specified via the "@zvalue"
.
kml_layer.RasterBrick(obj, plot.legend = TRUE, dtime = "", tz = "GMT",
z.lim = c(min(minValue(obj), na.rm=TRUE), max(maxValue(obj), na.rm=TRUE)),
colour_scale = get("colour_scale_numeric", envir = plotKML.opts),
home_url = get("home_url", envir = plotKML.opts),
metadata = NULL, html.table = NULL,
altitudeMode = "clampToGround", balloon = FALSE,
png.width, png.height, min.png.width = 800, png.type, …)
object of class "RasterBrick"
(e.g. a time series of images)
logical; specify whether a map legend should be generated automatically
temporal support (point or block) expressed in seconds
referent time zone
upper and lower limits (unique for all maps in the time series); the function by default uses the absolute minimum and maximum in values
color palette; by default uses the color scale for numeric variables
(optional) URL directory / location of the images
(optional) the metadata object
(optional) the description block (html)
character; the default altitudeMode
logical; specifies whether to display balloon for each element
(optional) width of the PNG files
(optional) height of the PNG files
(optional) minimum width of the PNG file
character; PNG type
additional arguments (see aesthetics
)
This method is recommended for visualization of numeric bands representing the same variable i.e. time series of images. To export a stack of images of different type see kml_layer.Raster
. If the "@zvalue"
slot is empty, dates will be added by subtracting days from the current day with 1--day increments.