Re: [R] lattice dotplot reorder contiguous levels

2012-09-26 Thread maxbre
sorry for my slow reply, this is what I worked out so far… my reproducible example and the code test-structure(list(site = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L,

Re: [R] lattice dotplot reorder contiguous levels

2012-09-26 Thread Deepayan Sarkar
On Wed, Sep 26, 2012 at 3:36 PM, maxbre mbres...@arpa.veneto.it wrote: sorry for my slow reply, this is what I worked out so far… my reproducible example and the code test-structure(list(site = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,

Re: [R] lattice dotplot reorder contiguous levels

2012-09-21 Thread Deepayan Sarkar
On Thu, Sep 20, 2012 at 7:48 PM, maxbre mbres...@arpa.veneto.it wrote: my reproducible example test-structure(list(site = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L,

Re: [R] lattice dotplot reorder contiguous levels

2012-09-21 Thread Massimo Bressan
thank you all for your helpful replies to bert the problem with relation =same is the plotting along y axis of all categories (samp.time) for all groups (sites); instead, I need to plot along y axis just the categories for each group effectively having a corresponding observation to danny

Re: [R] lattice dotplot reorder contiguous levels

2012-09-21 Thread Massimo Bressan
deepayan, is that what you mean? but still the problem persists: nor correct neither contiguous labelling! I must probably reconsider everything from scratch: I'm bit confused now... test$samp.time.new - with(test, reorder(samp.time:site, as.numeric(site)))

[R] lattice dotplot reorder contiguous levels

2012-09-20 Thread maxbre
my reproducible example test-structure(list(site = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 5L), .Label = c(A, B, C,

Re: [R] lattice dotplot reorder contiguous levels

2012-09-20 Thread Bert Gunter
I don't entirely understand what you want as an alternative. What is wrong with relation =same, the default? In any case, it sounds like you'll need to write your own panel function. If you look at panel.dotplot(), you'll see it's fairly straightforward, so modification should not be difficult.

Re: [R] lattice dotplot reorder contiguous levels

2012-09-20 Thread Richard M. Heiberger
Is result3 what you are looking for? test-structure(list(site = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 5L), .Label =