Hi I am running the following code:

   sym <- c(sym1,sym2,sym4)

lifedxm <- c("O-BD","O-WELL","O-UNI")

life <- c(lifedxm,lifedxm,lifedxm)

tp <- c("TP-ANY","TP-ANY", "TP-ANY", "TP-SUB", "TP-SUB", "TP-SUB", "TP-CLIN"
, "TP-CLIN", "TP-CLIN")

data <- data.frame(sym,life,tp)

qplot(life,geom="bar",weight=sym,ylim=c(0,1),legend=F,data=data) +
facet_grid(. ~ tp)



This creates a facet grid where TP-ANY is followed by TP-CLIN and  then
TP-SUB. I'd like to create a grid where TP-ANY is followed by TP-SUB then
TP-CLIN.


Is this possible?


Thanks,

Chris

        [[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.

Reply via email to