Re: [R] labelling points plotted in a 2D plan

2009-07-27 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 25.07.2009 23:15:04: > Thanks for the answer Tal! > But I can't get it to work correctly! :( > Please bear with me this is the first time I am using R! and I am in a rush > to correct a paper > in fact on the plane I am plotting a table > > fullpointed=

Re: [R] labelling points plotted in a 2D plan

2009-07-26 Thread Khaled OUANES
Hello Tal! Nothing showed up when I used those commands! The plot still shows dots with no labels! Thanks On Sun, Jul 26, 2009 at 7:28 AM, Tal Galili wrote: > Hi Khaled, > Did my answer help ? > > > > > On Sun, Jul 26, 2009 at 12:15 AM, Khaled OUANES wrote: > >> Thanks for the answer Tal! >>

Re: [R] labelling points plotted in a 2D plan

2009-07-25 Thread Khaled OUANES
Thanks for the answer Tal! But I can't get it to work correctly! :( Please bear with me this is the first time I am using R! and I am in a rush to correct a paper in fact on the plane I am plotting a table > fullpointed=read.table("fullpoints_backup.txt",h=F) > plot(range(-2.5,0.95),range(0.00,1.0

Re: [R] labelling points plotted in a 2D plan

2009-07-25 Thread Khaled OUANES
hey thanks for the answer but I couldn't achieve it? would you explain a bit more? I have like 300 points to label! thanks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] labelling points plotted in a 2D plan

2009-07-25 Thread Tal Galili
Sure, Here is an example: # get some random data to play with x <- runif(100) y <- runif(100) labels.to.plot <- sample(c("A","B"), 100, replace = T) # set up the window, play them one by one to see what they do plot.window(ylim = c(0,1), xlim = c(0,1)) plot.new() axis(1) axis(2) box() # plot th

Re: [R] labelling points plotted in a 2D plan

2009-07-25 Thread Tal Galili
Hi Khaled. I believe using "text" on an empty plot would do the trick... Tal On Sat, Jul 25, 2009 at 3:13 PM, Khaled OUANES wrote: > I created a 2 D plan: > > > plot(range(-2.5,0.95),range(0.00,1.00),type="n",axes=TRUE) > > I made a projection of points with their coordonates (X,Y) in that

[R] labelling points plotted in a 2D plan

2009-07-25 Thread Khaled OUANES
I created a 2 D plan: > plot(range(-2.5,0.95),range(0.00,1.00),type="n",axes=TRUE) I made a projection of points with their coordonates (X,Y) in that plan > fullpoints=read.csv2("fullpoints.csv",h=T) > plot(fullpoints) The points are listed in that .csv file it is organized this way: 0,4887