plot_map {pRecipe} | R Documentation |
Map ggplot
Description
Convenient and aesthetic visualization of data in a map
Usage
plot_map(x, layer = 1, unit = "mm", timestamp = TRUE)
## S4 method for signature 'Raster'
plot_map(x, layer = 1, unit = "mm", timestamp = TRUE)
## S4 method for signature 'data.table'
plot_map(x, layer = 0, unit = "mm", timestamp = TRUE)
## S4 method for signature 'character'
plot_map(x, layer = 1, unit = "mm", timestamp = TRUE)
Arguments
x |
Raster* object; data.table (see details); filename (character, see details) |
layer |
numeric |
unit |
character |
timestamp |
logical |
Details
If 'x' is a data.table, its columns should be named: "lon", "lat", "date", and "value"
If 'x' is a filename, it should point to a *.nc file.
'unit' is a character string describing the unit of measurement to be used for the legend title
'layer' is the layer number to be plotted.
‘timestamp' if TRUE (default) the plot title is the layer’s date
Value
ggplot object
[Package pRecipe version 3.0.3 Index]