I've got another problem. What if I have another dotchart with same categories, but one of the data are missing (control A)?? So I want to leave out from the dotchart. In this case in the control category should have only one dotline, because the other one is empty. Or mark somehow that it's missing, destroyed, etc.
On the same example: x = c(39, NA, 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)) -- View this message in context: http://r.789695.n4.nabble.com/dotchart-ordering-problem-tp4646038p4646856.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.