[RS-ecology] Unsupervised Classification example

Natalia Quinteros natalia.l.quinteros.c at gmail.com
Wed Sep 7 23:01:24 CEST 2016


Hi all,

I'm going through the book and I'm at Chapter 8 doing the Unsupervised
Classification example and I am obtaining a monochromatic image and a Null
model. I wonder if anybody have had the same problem and could fix it.

This is my code:

set.seed(6)
p224r63_2011 <- brick("p224r63_2011.grd", package="raster")
p224r63_2011_uc <- unsuperClass(p224r63_2011, nSamples = 10000, nClasses =
4, nStarts = 50, norm = TRUE)
loadings(p224r63_2011_uc$model)
colors <- rainbow(5)
plot(p224r63_2011_uc$map)

Thank you

Natalia

p.s. this is the image after plotting

[image: Inline image 1]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-wuerzburg.de/pipermail/rs-ecology/attachments/20160907/378795ca/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 14634 bytes
Desc: not available
URL: <http://lists.uni-wuerzburg.de/pipermail/rs-ecology/attachments/20160907/378795ca/attachment-0001.png>


More information about the RS-ecology mailing list