[R] Switch "Groups" in ehplot (x-axis)
DusanP
dusan.petrovic at bluewin.ch
Thu Nov 15 18:01:00 CET 2012
Hello Peter,
I checked for the "levels()" and "reorder()", but I can't make it work. R
classifies the "Groups" (factor) by alphabetical order, but I would just
like to make him understand that it is ordered (is.ordered()) in my data
frame.
Here is my code :
abs1<-spleen*p1*p2*cd8
length(abs1) # = 13
abs<-c(0.499,0.73,0.5,0.75,abs1)
symb<-rep(c(17,15,17,15,19),times=c(2,2,5,5,3))
noms<-rep(c("WT (NI)","Bim-/-Bid-/-
(NI)","WT","Bim-/-Bid-/-","Bim-/-Noxa-/-"),times=c(2,2,5,5,3))
df<-data.frame(abs,symb,noms)
ehplot(df$abs,df$noms,offset=0.1,intervals=10,median=FALSE,pch=df$symb,
xlab="Recipient mice strain (CD45.2)",ylab="# CD8alpha DC x 10^6",
main="Absolute number of CD8alpha DCs in spleen",ylim=c(0,3))
Thank you for your help
Dusan
--
View this message in context: http://r.789695.n4.nabble.com/Switch-Groups-in-ehplot-x-axis-tp4649485p4649632.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list