Skip to content
Prev 32765 / 63421 Next

plot ignores type= "n" when x is factor (PR#13703)

On Tue, May 26, 2009 at 3:11 AM, Prof Brian Ripley
<ripley at stats.ox.ac.uk> wrote:
No, actually.  I used time travel to return to the present and
pre-maturely file the bug report :)

I knew the problem would still be there in 2.9.1 and I came back to
try to warn you about it.
Please look at this from the user's point of view.

There's no mention of plot.factor in the plot help page.  Aside from
reading the source code of the plot function (or your email), I don't
think a user would know that plot.factor is even involved in plot.

How about inserting this at the top of the help page for plot:

If either x or y is a factor variable, the plot.factor method is
called to determine the sort of graph to be drawn. If x and y are both
numeric, the type argument determines the sort of graph to be drawn.

If you did that, then you could answer my bug report with the
criticism that I did not read ?plot.factor or that plot.factor can't
do what I want. Otherwise, your response seems unkind and somewhat
unreasonable.  I have no way of knowing that plot.factor is even
involved when I try to use the plot function.

pj