Re: [R] alternative to 'groups' for lattice bwplot()
Mulholland, Tom [EMAIL PROTECTED] wrote: I'm afraid you have lost me. What is it that you want that reordering the formula does not achieve. bwplot(yield ~ year | site, data = barley) has sites next to each other. Yes, they are next to each other, but in different panels, as expected when using a formula like that. I should have been more explicit saying that I want the conditioning variable to show within a panel. If the lattice structure is your issue (it appears you wish to remove the structure and replace it with a wider space) then I guess you might find writing your own code easier than forcing lattice to be something other than itself. I disagree. IMHO, I don't think the sole purpose of lattice is to put plots in different panels. There are several cases, where (I think) lattice can mark groups of data in a single panel more efficiently than other tools. One may or may not need other conditioning variables to show in different panels. -- Sebastian P. Luque __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] alternative to 'groups' for lattice bwplot()
On Wednesday 23 March 2005 00:10, Sebastian Luque wrote: Hi, Is there some alternative to the 'groups' argument in lattice's bwplot function for boxplots? Say in the example below: bwplot(yield ~ site | year, data = barley) you want to have two side by side boxplots per site, corresponding to each year in the barley data frame. Ideally, the space between boxplots of the same site should be smaller than that between boxplots of different sites. This seemed like a job for the 'groups' argument, but panel.bwplot doesn't take it. I saw that boxplot() might do this for the particular example above, but not for a more complex one with additional conditioning variables (as in my actual problem). I consider bwplot to already provide a grouped display (box plots are univariate summaries, and bwplot allows you to display several of them together within a panel). What you are looking for may be appropriate in certain situations, but is not general enough to warrant a built-in implementation. In other words, you'll have to write your own panel function. I thought I'd find something about this in the archives, but I'm either not using the right keywords or the question hasn't come up yet. The only instance I can recall is: http://tolstoy.newcastle.edu.au/R/help/04/02/0848.html Deepayan __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] alternative to 'groups' for lattice bwplot()
Hi, Is there some alternative to the 'groups' argument in lattice's bwplot function for boxplots? Say in the example below: bwplot(yield ~ site | year, data = barley) you want to have two side by side boxplots per site, corresponding to each year in the barley data frame. Ideally, the space between boxplots of the same site should be smaller than that between boxplots of different sites. This seemed like a job for the 'groups' argument, but panel.bwplot doesn't take it. I saw that boxplot() might do this for the particular example above, but not for a more complex one with additional conditioning variables (as in my actual problem). I thought I'd find something about this in the archives, but I'm either not using the right keywords or the question hasn't come up yet. Some help on how to deal with this please? -- Sebastian P. Luque __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
RE: [R] alternative to 'groups' for lattice bwplot()
I'm afraid you have lost me. What is it that you want that reordering the formula does not achieve. bwplot(yield ~ year | site, data = barley) has sites next to each other. If the lattice structure is your issue (it appears you wish to remove the structure and replace it with a wider space) then I guess you might find writing your own code easier than forcing lattice to be something other than itself. -Original Message- From: Sebastian Luque [mailto:[EMAIL PROTECTED] Sent: Wednesday, 23 March 2005 2:11 PM To: r-help@stat.math.ethz.ch Subject: [R] alternative to 'groups' for lattice bwplot() Hi, Is there some alternative to the 'groups' argument in lattice's bwplot function for boxplots? Say in the example below: bwplot(yield ~ site | year, data = barley) you want to have two side by side boxplots per site, corresponding to each year in the barley data frame. Ideally, the space between boxplots of the same site should be smaller than that between boxplots of different sites. This seemed like a job for the 'groups' argument, but panel.bwplot doesn't take it. I saw that boxplot() might do this for the particular example above, but not for a more complex one with additional conditioning variables (as in my actual problem). I thought I'd find something about this in the archives, but I'm either not using the right keywords or the question hasn't come up yet. Some help on how to deal with this please? -- Sebastian P. Luque __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html