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. Regards, Fayez Grad Student UIUC, USA
There are a variety of ways to make box plots (e.g. base graphics, lattice, and
ggplot2). As the message footer says, you should be reading the Posting Guide
and providing a reproducible example (with sample data).
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live
Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
"Aziz, Muhammad Fayez" <aziz4 at illinois.edu>
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.
>
>Regards,
>Fayez
>Grad Student
>UIUC, USA
>______________________________________________
>R-help at 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.
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