Skip to content

Problem with Axis

1 message · Gabor Grothendieck

#
If we run the code below we get an error message but if we
replace Axis with axis then we get no error message.

I don't think Axis' error message is a good idea since one
can't know ahead of time whether there is a tick at
January or not since R can automatically adjust plot ranges
in a complex way.  For example, plot(d-13, 1:12) has a tick
at Jan even though d-13 starts at jan 2nd.

I think Axis should act the same as axis in this case.
Error in axis(side, at = z, labels = labels, ...) :
  'at' and 'labels' lengths differ, 0 != 1
[1] "R version 2.8.0 Patched (2008-10-21 r46766)"