plot_residuals: Residuals plot

Description Usage Arguments Details Value See Also Examples

Description

Represents each signature as a weighted combination of endmembers. Plot the residuals the residuals of this adjustment: the sum of the errors between the represented and the real values.

Usage

1
plot_residuals(signatures)

Arguments

signatures

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

Details

The result is a histogram and a density plot of the residuals.

Value

A ggplot2 object.

See Also

unmixing_fixed

unmixing_vca

load_signature_files

Examples

1
2
3
4
data(signatures)
unmixed_signatures <- unmixing_fixed(signatures, files=c("almagre.asd.txt", "blanco.asd.txt"))

plot_residuals(unmixed_signatures)

demosense/archeospec documentation built on May 28, 2019, 8:39 a.m.