Skip to content

package plotrix: how to account for two two z categories

6 messages · Luigi Marongiu, 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 Thu, Sep 24, 2020 at 6:25 PM Luigi Marongiu <marongiu.luigi at gmail.com> wrote:
#
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 <drjimlemon at gmail.com> wrote:
1 day later
#
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 <drjimlemon at gmail.com> wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lm_plot.png
Type: image/png
Size: 18874 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20200925/6681962e/attachment.png>
#
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 <drjimlemon at gmail.com> 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 of using a bar
plot.

# new functions with the modifications
source("barNest.R")
source("drawNestedSpans.R")
png("lm_plot.png",width=600)
barNest(y~w+z+x,Q,main="Double Measurement",
 ylab="Response",col=barcol,errbars=TRUE)
dev.off()


Jim
On Fri, Sep 25, 2020 at 9:54 PM Luigi Marongiu <marongiu.luigi at gmail.com> wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lm_plot.png
Type: image/png
Size: 19913 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20200926/73719d81/attachment.png>
#
Hmmm, maybe without the caps...

Jim
On Sat, Sep 26, 2020 at 8:20 AM Jim Lemon <drjimlemon at gmail.com> wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lm_plot.png
Type: image/png
Size: 18859 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20200926/bcaaf4e8/attachment.png>