Re: [R] package plotrix: how to account for two two z categories

2020-09-25 Thread Jim Lemon
Hmmm, maybe without the caps... Jim On Sat, Sep 26, 2020 at 8:20 AM Jim Lemon wrote: > > Hi Luigi, > Good illustration. Maybe if I can integrate vertical lines to show the > nesting instead of bars it would work better. While it makes the > nesting much clearer, some people may still accuse you

Re: [R] package plotrix: how to account for two two z categories

2020-09-25 Thread Jim Lemon
Hi Luigi, Good illustration. Maybe if I can integrate vertical lines to show the nesting instead of bars it would work better. While it makes the nesting much clearer, some people may still accuse you of using a bar plot. # new functions with the modifications source("barNest.R") source("drawNeste

Re: [R] package plotrix: how to account for two two z categories

2020-09-25 Thread Luigi Marongiu
Thanks! looks nicer already. I am attaching the figure I temporarily made with normal brkdn.plot but yours has more information. Best regards Luigi On Fri, Sep 25, 2020 at 1:43 PM Jim Lemon wrote: > > Hi Luigi, > Here is a quick example of how points would look in the same > configuration. Perhap

Re: [R] package plotrix: how to account for two two z categories

2020-09-25 Thread Jim Lemon
Hi Luigi, Here is a quick example of how points would look in the same configuration. Perhaps with end caps to show the nesting it may be more like what you want. Jim On Thu, Sep 24, 2020 at 6:34 PM Jim Lemon wrote: > > Oh, sorry, forgot about the colors. A list beginning with the color > for th

Re: [R] package plotrix: how to account for two two z categories

2020-09-24 Thread Jim Lemon
Oh, sorry, forgot about the colors. A list beginning with the color for the overall summary, then colors for the first factor and so on. See the help page for examples. Jim On Thu, Sep 24, 2020 at 6:32 PM Jim Lemon wrote: > > Hi Luigi, > I thought a lot about that when I was writing the function

Re: [R] package plotrix: how to account for two two z categories

2020-09-24 Thread Jim Lemon
Hi Luigi, I thought a lot about that when I was writing the function. The only way I could think of to show the nesting was dots with horizontal lines and it looked messy and was quite hard to visualize the nesting. If you do have any great ideas I always welcome contributions to plotrix. Jim On

Re: [R] package plotrix: how to account for two two z categories

2020-09-24 Thread Jim Lemon
Hi Luigi, To display a nested breakdown like this I would suggest barNest. This is one way to display the nesting. Note that if you change the order of the factors in the formula you will get a different plot, so think about how you want the summaries nested. Error bars can only be displayed on the

[R] package plotrix: how to account for two two z categories

2020-09-23 Thread Luigi Marongiu
Hello, I have an experiment measuring optical density (OD) when comparing three parameters: a) concentration of the target b) concentration of the probe c) concentration of the reporter antibody. Using plotrix I can nicely draw the first two into clusters, but I can't get separation for the third p