[R] Scatter Plot

Felipe Carrillo mazatlanmexico at yahoo.com
Thu Jul 30 21:45:31 CEST 2009


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 <amnakhan493 at gmail.com> wrote:

> From: amna khan <amnakhan493 at gmail.com>
> Subject: [R] Scatter Plot
> To: r-help at 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 at 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.
> 







More information about the R-help mailing list