Dear all, I'm trying to use "scatterplot" from package "car" to get a scatterplot with row-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=TRUE, id.n=nrow(Prestige),id.cex=0.8) Cheers, Erich [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.