PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
At a rough guess you may want to have a look at the mfrow in ?par but without some sample data and a bit more information about what you need it is difficult to suggest more. By the way dput (see ?dput) is a handy way to supply a sample data set here. John Kane Kingston ON Canada > -----Original Message----- > From: ap...@neuro.mpg.de > Sent: Mon, 20 Feb 2012 10:27:11 +0000 > To: r-help@r-project.org > Subject: [R] overlay of two sets of boxplots > > Hello, > I am new to R and currently have the following problem: > I have successfully loaded my data in R which consists of two numeric > columns (LI_F and female) and one character column (Strain). So far I can > plot two different set of boxplots for each of the numeric columns > plotted by the groups of the character column and the commands look like > that: > > boxplot(LI_F~Strain, ylab="LI_F", xlab="Strain", data=pain) > boxplot(female~Strain, ylab="female", xlab="Strain", data=pain) > > How can I overlay the two set of boxplots (preferably in different > colors), so that I can compare them one by one, meaning two boxplots > corresponding to the same character in "Strain" are directly above each > other? > I have tried a lot of things and would greatly appreciate your help. > > Best, > Mirjam > > [[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. ____________________________________________________________ Receive Notifications of Incoming Messages Easily monitor multiple email accounts & access them with a click. Visit http://www.inbox.com/notifier and check it out! ______________________________________________ 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.