Displaying 1 result from an estimated 1 matches for "prestige2".
Did you mean:
prestige
2011 Feb 08
1
How to change labels in scatterplot?
...names as labels and I want my data to be divided into two groups defined
by the column "tresh". Leaving away the groups-command gives me the right
labels but they are not distinguished by colors according to "tresh". Does
anybody know why the following example doesn't work?
Prestige2 <- transform(Prestige,thresh=(income>5000))
attach(Prestige2)
scatterplot(income~education,data=Prestige2,
xlab="Education",ylab="Income",cex.lab=1.2,
smooth=TRUE,spread=FALSE,reg.line=TRUE,lwd=2,
groups=thresh,by.groups=TRUE,legend.plot...