library(lattice) library(latticeExtra) tmp <- data.frame(a=1:20, b=LETTERS[rep(1:5,c(2,4,3,4,7))], cc=letters[rep(1:2, c(6,14))]) tmp bwplot(a ~ b | cc, data=tmp) bwplot(a ~ b | cc, data=tmp, scales=list(x=list(relation="free"))) resizePanels(bwplot(a ~ b | cc, data=tmp, scales=list(x=list(relation="free"))), w=c(2,3))
Please use minimal data in furture queries to this list. Rich On Mon, Aug 5, 2013 at 2:18 PM, Aziz, Muhammad Fayez <az...@illinois.edu>wrote: > > Hi, > > My question is how to auto adjust panel width according to number of box > plots in bwplot. I mean if a panel has 10 box plots and another has only > two, I need to make the later panel thinner than the first. I am familiar > with panel.width and layout.widths params but couldn't work it in my code > below. Data I am using follows. > > [[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.