Description Usage Arguments See Also Examples
Box plot of layers in a Raster object
1 2 3 4 5 |
x |
Raster* object |
y |
If |
maxpixels |
Integer. Number of pixels to sample from each layer of large Raster objects |
... |
Arguments passed to |
1 2 3 4 5 6 7 8 | r1 <- r2 <- r3 <- raster(ncol=10, nrow=10)
values(r1) <- rnorm(ncell(r1), 100, 40)
values(r2) <- rnorm(ncell(r1), 80, 10)
values(r3) <- rnorm(ncell(r1), 120, 30)
s <- stack(r1, r2, r3)
names(s) <- c('A', 'B', 'C')
boxplot(s, notch=TRUE, col=c('red', 'blue', 'orange'), main='Box plot', ylab='random' )
|
Loading required package: sp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.