Displaying 1 result from an estimated 1 matches for "expzad".
2005 Jan 14
1
Colors and legend on a scatterplot?
...have a set of points in area of my research with coordinates X and Y and
a value which I would like to show with colors.
#values for points are residuals from regression
stepmod = 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...