On 08/05/2013 08:01 AM, Aziz, Muhammad Fayez wrote:

Hi,

My question is how to make panel sizes variable in box plots. 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.

Hi Fayex,
Try this:

xdat<-data.frame(a=rnorm(100),b=rnorm(100),c=rnorm(100),d=rnorm(100),
 e=rnorm(100),f=rnorm(100),g=rnorm(100))
dev.new(width=10,height=3)
layout(matrix(1:2,nrow=1),widths=c(5,2))
boxplot(xdat[1:5])
boxplot(xdat[6:7])

Jim

______________________________________________
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