vis_rasterbrick: Visualize rasterbrick

View source: R/visual_spatial.R

vis_rasterbrickR Documentation

Visualize rasterbrick

Description

Visualize rasterbrick

Usage

vis_rasterbrick(
  rb = NULL,
  bands = NULL,
  cols = NULL,
  ncol = 2,
  outfn = "vis_bands.pdf",
  save = FALSE,
  width = 4,
  height = 4
)

Arguments

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

Examples

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)


xuzhenwu/xu documentation built on Oct. 15, 2023, 10:32 a.m.