Learn R Programming

sits (version 0.10.0)

plot.stack_cube: Generic interface for plotting stack cubes

Description

plots a stack cube using terra

Usage

# S3 method for stack_cube
plot(x, y, ..., red, green, blue, time = 1, roi = NULL)

Arguments

x

object of class "stack_cube"

y

ignored

...

further specifications for plot.

red

band for red color.

green

band for green color.

blue

band for blue color.

time

temporal instances to be plotted.

roi

sf object giving a region of interest.

Value

mapview object

Examples

Run this code
# NOT RUN {
data_dir <- system.file("extdata/raster/cbers", package = "sits")

cbers_022024 <- sits_cube(
    type = "STACK",
    name = "cbers_022024",
    satellite = "CBERS-4",
    sensor = "AWFI",
    resolution = "64m",
    data_dir = data_dir,
    parse_info = c("X1", "X2", "band", "date")
)
# plot the data cube
plot(cbers_022024, red = "B15", green = "B16", blue = "B13", time = 1)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab