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 the things you wished to plot, where you wanted them plotted
text(x, y , labels = labels.to.plot)



Cheers,
Tal










On Sat, Jul 25, 2009 at 7:20 PM, Khaled OUANES <koua...@gmail.com> wrote:

> 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
>



-- 
----------------------------------------------


My contact information:
Tal Galili
Phone number: 972-50-3373767
FaceBook: Tal Galili
My Blogs:
http://www.r-statistics.com/
http://www.talgalili.com
http://www.biostatistics.co.il

        [[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.

Reply via email to