Hello,
I have 2 variables - x and y, that belong to separate groups.
I want to plot all the x and y together, but show separate abline for each
group. It can be done in ggplot2, but is there a simpler way to draw
ablines by group?
e.g.,

mydata <- data.frame(x = 1:20+rnorm(20, -3, 1), y = seq(1,20,by=1), group =
rep(letters[1:5],20))
plot(x,y,col=mydata$group)  # need to get separate ablines for each
color-code

	[[alternative HTML version deleted]]

