Hi,Can I use "reorder" function with barchart as in dotchart? Here are some codes which do not work for me. Thanks Chetty ___________________________ a1c.cast$bmi.cat.reordered[a1c.cast$eth!="Other"] <-with(a1c.cast[a1c.cast$eth!="Other",],reorder(bmi.cat.ordered[a1c.cast$eth!="Other"], BP.FN.RATE,median )) barchart(BP.FN.RATE~ gender|eth,data=a1c.cast[a1c.cast$eth!="Other"&a1c.cast$bmi.cat.reordered!="Other",], groups =bmi.cat.reordered , par.settings = list(superpose.polygon = list(col=c("blue","cyan","red","yellow" )) ), sub=" NHANES-99:06; n = 12,514 " ,ylab= list("Error Rate (%)",cex=1.5), xlab=list("Gender",cex=1.25),auto.key=list(title=" FPG VS A1C for DM Diagnosis: Missed BP",columns=2,cex=1.25), col=c("blue","cyan","red","yellow"))
-- Chetty Professor of Family Medicine Boston University Tel: 617-414-6221, Fax:617-414-3345 emails: chett...@gmail.com,vche...@bu.edu [[alternative HTML version deleted]] ______________________________________________ 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.