powered by
Convenient and aesthetic visualization of data in a summary plot.
plot_summary(x, var = "Precipitation", unit = "mm")# S4 method for Raster plot_summary(x, var = "Precipitation", unit = "mm")# S4 method for data.table plot_summary(x, var = "Precipitation", unit = "mm")# S4 method for character plot_summary(x, var = "Precipitation", unit = "mm")
# S4 method for Raster plot_summary(x, var = "Precipitation", unit = "mm")
# S4 method for data.table plot_summary(x, var = "Precipitation", unit = "mm")
# S4 method for character plot_summary(x, var = "Precipitation", unit = "mm")
ggplot object
Raster* object; data.table (see details); filename (character, see details)
character (see 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.
`var` is a character string describing the variable to be used for the axis title
`unit` is a character string describing the unit of measurement to be used for the axis title
if (FALSE) { download_data("gldas-vic", tempdir(), timestep = "yearly") r <- raster::brick(paste0(tempdir(), "/gldas-vic_tp_mm_land_194801_201412_025_yearly.nc")) s <- plot_summary(r) }
Run the code above in your browser using DataLab