[R] Problem with interaction.plot()

Warnes, Gregory R gregory_r_warnes at groton.pfizer.com
Sat Feb 9 01:44:21 CET 2002


You can get around this problem by specifying the summary function used by
interaction.plot :

	mean.rm.na <- function(x) mean(x,na.rm=T)
	interaction.plot( A, B, Y )

-Greg


> -----Original Message-----
> From: Kaiya Liu [mailto:liu.262 at osu.edu]
> Sent: Friday, February 08, 2002 4:57 PM
> To: Uwe Ligges
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] Problem with interaction.plot()
> 
> 
> Thank you very much --- I thought it was just me not doing 
> the right thing.
> 
> Another related problem with the interaction.plot () 
> function. It doesn't 
> plot for the group that has one for more missing values. Say 
> I have a Y 
> variable and two factors A and B, where A has 3 levels and B has two 
> levels. There are a few missing values for Y when B is at 
> level 1. When you do
>          interaction.plot (A, B, Y)
> you will have a plot missing the lines for B = 1.
> 
> Kaiya Liu
> 
> 
> 
> At 02:07 PM 2/8/02 +0100, Uwe Ligges wrote:
> >Kaiya Liu wrote:
> > >
> > > Hi,
> > >
> > > I encountered a problem when I did interaction plots using the
> > > interaction.plot() function. The labels for the trace 
> factor appeared on
> > > the plot when I did the plots in separate windows, but 
> disappeared/cut off
> > > when multiple plots were placed in one window. Can 
> anybody help me?
> >
> >The calculation of the width of the legend is really 
> difficult in that
> >case in goes wrong, because it is based on heuristics for a 
> single plot.
> >I'll send a bug report in a few minutes.
> >
> >As a workaround I'd suggest to use interaction.plot(..., 
> legend=FALSE)
> >and add a legend with legend() manually.
> >
> >Uwe Ligges
> >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> .-.-.-.-.-.-.-.-.-
> >r-help mailing list -- Read 
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> >Send "info", "help", or "[un]subscribe"
> >(in the "body", not the subject !)  To: 
> r-help-request at stat.math.ethz.ch
> >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> ._._._._._._._._._
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-.-.-
> r-help mailing list -- Read 
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: 
> r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._._._._._._._
> 


LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list