Hi,

I am trying to connect points, but not in a different order than the
default value in ggplot. For example:

 xx <- sample(1:100,5)
  yy <- sample(1:100,5)

  mydat <- data.frame(xx,yy)
  print(mydat)

  ggplot(mydat,aes(xx,yy)) + geom_point() + geom_line()


I want to connect the points as they appear in mydat, and not necessarily
from the smallest value on the 'x' axis to the largest.

How can I do this?

thanks!

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to