Re: [R] Colour makes my life; but not my bwplot (panel.violin)

2011-04-01 Thread Deepayan Sarkar
On Fri, Mar 25, 2011 at 3:59 PM, JP jeanpaul.ebe...@inhibox.com wrote: Hi there David, Many thanks for your time and reply I created a small test set, and ran your proposed solution... and this is what I get http://i.imgur.com/vlsSQ.png This is not what I want - I want separate grp_1 and

Re: [R] Colour makes my life; but not my bwplot (panel.violin)

2011-03-25 Thread JP
Hi there David, Many thanks for your time and reply I created a small test set, and ran your proposed solution... and this is what I get http://i.imgur.com/vlsSQ.png This is not what I want - I want separate grp_1 and grp_2 panels and in each panel a red violin plot and a blue one. So like this

Re: [R] Colour makes my life; but not my bwplot (panel.violin)

2011-03-25 Thread David Winsemius
OK, I did it , but it required a minor hack to panel.violin, since in its native state panel.violin only passes a single vector the the grid plotting functions. On Mar 25, 2011, at 6:29 AM, JP wrote: Hi there David, Many thanks for your time and reply I created a small test set, and ran

Re: [R] Colour makes my life; but not my bwplot (panel.violin)

2011-03-25 Thread David Winsemius
Using that hack you can also skip the trellis.par.set step with an internal assignment of color: bwplot(r ~ p | q, col=c(yellow, green), data=test_data, panel = function(x,y, subscripts, col=col, ..., box.ratio){ panel.violin.hack(x,y,

Re: [R] Colour makes my life; but not my bwplot (panel.violin)

2011-03-25 Thread JP
Are you going to include this in the main source? Surely this is something people must need/ask for... On 25 March 2011 16:14, David Winsemius dwinsem...@comcast.net wrote: Using that hack you can also skip the trellis.par.set step with an internal assignment of color: bwplot(r ~ p | q,

[R] Colour makes my life; but not my bwplot (panel.violin)

2011-03-24 Thread JP
Using Trellis, am successfully setting up a number of panels (25) in which I have two box and violin plots. I would like to colour - one plot as RED and the other as BLUE (in each panel). I can do that with the box plots, but the violin density areas just take on one colour. My basic call is as

Re: [R] Colour makes my life; but not my bwplot (panel.violin)

2011-03-24 Thread David Winsemius
On Mar 24, 2011, at 1:37 PM, JP wrote: Using Trellis, am successfully setting up a number of panels (25) in which I have two box and violin plots. I would like to colour - one plot as RED and the other as BLUE (in each panel). I can do that with the box plots, but the violin density