Re: [R] Dot plot of character and numeric matrix

2013-01-23 Thread Jeff Newmiller
I think you need to become more familiar with the "factor" data type. Reread the Introduction to R document that comes with R. --- Jeff NewmillerThe . . Go Live... DCN:Basics:

Re: [R] Dot plot of character and numeric matrix

2013-01-23 Thread Jessica Streicher
As an example: chars<-c("A","A","B") numbers<-as.numeric(as.factor(chars)) #make this numerical plot(numbers,c(0.4,0.5,0.6),xaxt="n") #xaxt="n" says to not plot the x-axis axis(side=1,at=numbers,labels=chars) #make the axis with labels On 23.01.2013, at 10:16, Ng Wee Kiat Jeremy wrote: > Dea

[R] Dot plot of character and numeric matrix

2013-01-23 Thread Ng Wee Kiat Jeremy
Dear List, I have a set of data which looks like this (small set of sample) A A 0.431 A A 0.439 A A 0.507 A G 0.508 A A 0.514 I will like to use this data to plot a dot plot, with the X-axis being of type character, and my y axis of type numeric. When I try to use the dot c