[R] dotchart ordering problem
Zenonn87
zsolt.tarcai at hotmail.com
Fri Oct 12 22:38:34 CEST 2012
I'm having an sorting problem in dotchart. I want to change the order of the
BA in groups to AB, but I haven't found any solution yet. What should I do?
And what if I want to change the groups order as well? At the bottom from
Conrol up to 10 mg/L on the top. Thank you!
x = c(39, 23, 23, 35, 30, 26, 30, 30, 29, 29, 26, 29, 34, 33)
y = c("Control", "DMSO", "0,1 mg/L", "0,3 mg/L", "1 mg/L", "3 mg/L", "10
mg/L")
a = matrix(data= x, nrow=2)
rownames(a) = c("A","B"); colnames(a) = y
a
dotchart(a, main="Dotchart", xlim=c(0,50))
<http://r.789695.n4.nabble.com/file/n4646038/dotchart.jpg>
--
View this message in context: http://r.789695.n4.nabble.com/dotchart-ordering-problem-tp4646038.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list