Plot the mean composition of each signature expressed as a combination of endmembers, grouped by clusters.

plot_endmember_density_box(signatures)

Arguments

signatures

A spectral object built using the load_signature_files function. The spectral object needs to be clustered (using clustering_kmeans or clustering_endmembers) and unmixed (using unmixing_fixed or unmixing_vca).

Value

A ggplot2 object.

Details

The result is a set of whiskers box plots

See also

Examples

data(signatures) unmixed_signatures <- unmixing_fixed(signatures, files=c("almagre.asd.txt", "blanco.asd.txt"))
#> Error in unmixing_fixed(signatures, files = c("almagre.asd.txt", "blanco.asd.txt")): unused argument (files = c("almagre.asd.txt", "blanco.asd.txt"))
clustered_signatures <- clustering_kmeans(unmixed_signatures, k=2)
#> Error in is(x, "spectral"): object 'unmixed_signatures' not found
plot_endmember_density_box(clustered_signatures)
#> Error in is(x, "spectral"): object 'clustered_signatures' not found