Displaying 1 result from an estimated 1 matches for "sdclas".
Did you mean:
sclass
2005 Jan 14
1
Colors and legend on a scatterplot?
...d = step(wmodzad, direction="both")
#I am adding residuals to original data to get coordinates for residuals
expzad = cbind(zadrz, residuals(stepmod))
#I want to have colors for classes defined as standard deviation from mean
std = sd(residuals(stepmod))
mn = mean(residuals(stepmod))
sdclas = seq(-3*std+mn, 3*std+mn, by=std)
#I would like to have colors from green to red, but I can't do it so I am
doing only
palette( rainbow(6) )
#I am dividing residuals into earlier defined classes by
residsd = cut(residuals(stepmod), sdclas, labels=FALSE)
#or by (THEN POINTS DON'T APPE...