Tri this for both, points and text.. library(ggplot2) qplot(x=1:5,y=1:5) + geom_text(label=1:5)
Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA --- On Thu, 7/30/09, amna khan <amnakhan...@gmail.com> wrote: > From: amna khan <amnakhan...@gmail.com> > Subject: [R] Scatter Plot > To: r-help@r-project.org > Date: Thursday, July 30, 2009, 9:14 AM > Dear Sir > > I want to write the numbers 1,2,3,----on a scatter plot > instead of points, > like 1 corresponding to first point on plot, 2 > corresponding second point > etc. > Help in this regard. > > Regards > > -- > AMINA SHAHZADI > Department of Statistics > GC University Lahore, Pakistan. > > [[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. > ______________________________________________ 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.