stars (version 0.0)

plot.stars: plot stars object, with subplots for each level of first non-spatial dimension

Description

plot stars object, with subplots for each level of first non-spatial dimension

Usage

# S3 method for stars
plot(x, y, ..., join_zlim = TRUE, main = names(x)[1])

# S3 method for stars image(x, ..., band = 1, attr = 1, asp = 1, rgb = NULL, maxColorValue = 1, xlab = names(dims)[1], ylab = names(dims)[2], xlim = st_bbox(x)$xlim, ylim = st_bbox(x)$ylim, useRaster = TRUE, text_values = FALSE)

Arguments

x

object of class stars

y

ignored

...

passed on to image.default

join_zlim

logical; if TRUE, compute a single zlim for all subplots from array range

main

character; subplot title prefix; use "" to get only time, use NULL to suppress subplot titles

band

integer; which band (dimension) to plot

attr

integer; which attribute to plot

asp

numeric; aspect ratio of image

rgb

integer; specify three bands to form an rgb composite

maxColorValue

numeric; passed on to rgb

xlab

character; x axis label

ylab

character; y axis label

xlim

x axis limits

ylim

y axis limits

useRaster

logical; see image.default

text_values

logical; print values as text on image?

Examples

Run this code
# NOT RUN {
tif = system.file("tif/L7_ETMs.tif", package = "stars")
x = st_stars(tif)
image(x, col = grey((3:9)/10))
# }

Run the code above in your browser using DataLab