Fredrik Karlsson
2011-Jul-10 15:03 UTC
[R] How do I get two levels of grouping for in a lattice panel function?
Dear list, I'm working on a panel function where I would like to be able to visualise data grouped by the category of the data, and then also changes in summary descriptives from one condition to another in the same scatter plot. Like the figure attached, but with one polygon for each subset of the data set given by a second variable (with colours still coming from the variable specified in the "groups" argument). Any ideas? /Fredrik -- "Life is like a trumpet - if you don't put anything into it, you don't get anything out of it." -------------- next part -------------- A non-text attachment was scrubbed... Name: fig.png Type: image/png Size: 210356 bytes Desc: inte tillg?nglig URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110710/2b584ec0/attachment.png>
David Winsemius
2011-Jul-10 15:48 UTC
[R] How do I get two levels of grouping for in a lattice panel function?
On Jul 10, 2011, at 11:03 AM, Fredrik Karlsson wrote:> Dear list, > > I'm working on a panel function where I would like to be able to > visualise > data grouped by the category of the data, and then also changes in > summary > descriptives from one condition to another in the same scatter plot. > Like > the figure attached, but with one polygon for each subset of the > data set > given by a second variable (with colours still coming from the > variable > specified in the "groups" argument). > > Any ideas?To paraphrase your sig: "Rhelp answers are like a trumpet - if you don't put any code and data into them, you don't get anything out of it."> -- > "Life is like a trumpet - if you don't put anything into it, you > don't get > anything out of it." > <David Winsemius, MD West Hartford, CT