xyplot is a lattice plotting command, text is a base plotting command. The 2 types don't play well together without extra work. The base command plot with text is probably the easiest, or you can just use plot and pch:
> with(iris, plot(Sepal.Width, Sepal.Length, pch=c('s','e','i')[Species] ) ) -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Schatzi > Sent: Tuesday, February 08, 2011 2:01 PM > To: r-help@r-project.org > Subject: Re: [R] Plot using treatment letter as points > > > Great. Thanks. Here is the new code: > > xyplot(Y~X,groups = TRT,type="n") > text(x,y,labels=TRT) > > -- > View this message in context: http://r.789695.n4.nabble.com/Plot-using- > treatment-letter-as-points-tp3276743p3276808.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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.