View source: R/visual_spatial.R
vis_rasterbrick | R Documentation |
Visualize rasterbrick
vis_rasterbrick(
rb = NULL,
bands = NULL,
cols = NULL,
ncol = 2,
outfn = "vis_bands.pdf",
save = FALSE,
width = 4,
height = 4
)
rb |
raster brick object |
bands |
numbers of the bands |
cols |
pallettes |
ncol |
number of columns |
outfn |
file name of the output |
save |
indicate export of pdf |
width |
(inchs) of single band image files |
height |
(inchs) of single band image files |
fn <- "I:/projects/fire/victoria/input/GLDAS_bilinear/GLDAS_V21_8d_2000-01-09.tif"
rb <- brick(fn)
names(rb)
cols <- colorRampPalette(RColorBrewer::brewer.pal(11, "Spectral"))
vis_rasterbrick(rb)
vis_rasterbrick(rb, bands = c(1,3,5,7), outfn = "vis_bands2.pdf", cols = cols, save = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.