Learn R Programming

sits (version 1.5.2)

hist.raster_cube: histogram of data cubes

Description

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

Usage

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

Value

A histogram of one band of data cube.

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

Author

Gilberto Camara, gilberto.camara@inpe.br

Examples

Run this code
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)
}

Run the code above in your browser using DataLab