Re: [R] Plot where points are treatment letter

2011-02-08 Thread David Winsemius
On Feb 8, 2011, at 3:42 PM, Schatzi wrote: I would like to create a plot of y vs x with different treatments where the points are actually the letter of the treatment. Here is the code: A<-as.matrix(rnorm(10,10)) B<-as.matrix(rnorm(10,9.5)) C<-as.matrix(rnorm(10,10.5)) Y<-as.matrix(rnorm(3

Re: [R] Plot where points are treatment letter

2011-02-08 Thread Peter Langfelder
Here's an example: x = c(1,2,3,4,5); y = rnorm(5); labels = LETTERS[1:5]; plot(x,y, type = "n") # This sets up the plot but doesn't actually plot the points text(x,y, labels) # This adds labels to positions (x,y) HTH, Peter On Tue, Feb 8, 2011 at 12:42 PM, Schatzi wrote: > > I would like to

[R] Plot where points are treatment letter

2011-02-08 Thread Schatzi
I would like to create a plot of y vs x with different treatments where the points are actually the letter of the treatment. Here is the code: A<-as.matrix(rnorm(10,10)) B<-as.matrix(rnorm(10,9.5)) C<-as.matrix(rnorm(10,10.5)) Y<-as.matrix(rnorm(30,13)) X<-rbind(A,B,C) nA<-matrix("A",10,1)