hist.raster_cube: histogram of data cubes

View source: R/sits_histogram.R

hist.raster_cubeR Documentation

histogram of data cubes

Description

This is a generic function. Parameters depend on the specific type of input.

Usage

## S3 method for class 'raster_cube'
hist(x, ..., tile = x[["tile"]][[1]], date = NULL, band = NULL, size = 10000)

Arguments

x

Object of classes "raster_cube".

...

Further specifications for summary.

tile

Tile to be shown

date

Date to be shown

band

Band to be shown

size

Number of cells to be sampled

Value

A histogram of one band of data cube.

Author(s)

Gilberto Camara, gilberto.camara@inpe.br

Examples

if (sits_run_examples()) {
    # create a data cube from local files
    data_dir <- system.file("extdata/raster/mod13q1", package = "sits")
    cube <- sits_cube(
        source = "BDC",
        collection = "MOD13Q1-6.1",
        data_dir = data_dir
    )
    hist(cube)
}


sits documentation built on Sept. 11, 2024, 6:36 p.m.