Learn R Programming

sits (version 1.12.0)

sits_plot_dendrogram: Plot a dendrogram

Description

Plot an enhanced dendrogram based on the result of sits_dendrogram.

Usage

sits_plot_dendrogram(data.tb, dendro.obj, cutree_height = NULL,
  colors = "RdYlGn")

Arguments

data.tb

A sits tibble with data used to extract the dendrogram.

dendro.obj

Cluster object. Usually stored by `sits_cluster` function in `.sits_last_object`.

cutree_height

A dashed horizontal line to be drawed indicating the height of dendrogram cutting.

colors

A color scheme as showed in `sits_color_name` function.

Examples

Run this code
# NOT RUN {
# Read a set of samples with 2 classes ("Cerrado" and "Pasture")
data ("cerrado_2classes")
# Generate and plot a dendrogram
dendro.obj <- sits_dendrogram (cerrado_2classes, bands = c("ndvi"))
sits_plot_dendrogram (cerrado_2classes, dendro.obj)
# }

Run the code above in your browser using DataLab