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.
plot_residuals(signatures)
signatures | A spectral object built using the load_signature_files function. The spectral object needs to be unmixed (using unmixing_fixed or unmixing_vca). |
---|
A ggplot2 object.
The result is a histogram and a density plot of the residuals.
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"))plot_residuals(unmixed_signatures)#> Error in is(x, "spectral"): object 'unmixed_signatures' not found