Re: [R] lattice: bwplot: getting two plots into one.

2013-08-23 Thread Anna Zakrisson Braeunlich
Subject: Re: [R] lattice: bwplot: getting two plots into one. The factor gm has nine levels, therefore you need to use a pch vector with 9 values (duplicates are ok). Therefore this will work. bwplot(var1 ~ gm, data=mydata, col=black, pch=rep(1:3,3), ##par.settings=list(box.dot=list(pch=1:3

Re: [R] lattice: bwplot: getting two plots into one.

2013-08-23 Thread Richard M. Heiberger
:* Richard M. Heiberger [r...@temple.edu] *Sent:* 22 August 2013 23:16 *To:* Anna Zakrisson Braeunlich *Cc:* r-help@r-project.org *Subject:* Re: [R] lattice: bwplot: getting two plots into one. The factor gm has nine levels, therefore you need to use a pch vector with 9 values (duplicates are ok

[R] lattice: bwplot: getting two plots into one.

2013-08-21 Thread Anna Zakrisson Braeunlich
Dear all, I have problems gettting the following as one graph instead of the two created by this script. I know that with this dummy data, the resulting graph will look like a catastrophy. I have other data I wish to apply this too. Just wanted to supply some dummy data to work with. There may

Re: [R] lattice: bwplot: getting two plots into one.

2013-08-21 Thread Richard M. Heiberger
This is the fundamentals bwplot(var1 ~ factor1 | factor2, data=mydata, panel=function(...) { panel.abline(h=0, lty=2, col=gray90) panel.bwplot(...) }) You can add the font control if you need to. The major change I made was to put the panel.abline first. It is part of the background

Re: [R] lattice: bwplot: getting two plots into one.

2013-08-21 Thread Richard M. Heiberger
-- *From:* Richard M. Heiberger [r...@temple.edu] *Sent:* 21 August 2013 17:21 *To:* Anna Zakrisson Braeunlich *Cc:* r-help@r-project.org *Subject:* Re: [R] lattice: bwplot: getting two plots into one. This is the fundamentals bwplot(var1 ~ factor1 | factor2, data=mydata

Re: [R] lattice: bwplot: getting two plots into one.

2013-08-21 Thread Anna Zakrisson Braeunlich
-help@r-project.org Subject: Re: [R] lattice: bwplot: getting two plots into one. This is the fundamentals bwplot(var1 ~ factor1 | factor2, data=mydata, panel=function(...) { panel.abline(h=0, lty=2, col=gray90) panel.bwplot(...) }) You can add the font control if you need to. The major