Skip to content

bug in plot.ts?

5 messages · Rui Barradas, Simone Giannerini, Duncan Murdoch

#
Dear all,

I think I have found a buglet in plot.ts

plot.ts(x=1,type="n")     # correct: does not show the plot
plot.ts(x=1,y=1,type="n") # not correct: does show the plot

I did not investigate the problem in depth but it could be related to
the switch xy.labels, in fact

plot.ts(x=1,y=1,type="n",xy.labels=TRUE) #  does show the plot
plot.ts(x=1,y=1,type="n",xy.labels=FALSE) # does not show the plot
R version 2.15.2 Patched (2012-10-26 r61028)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=Italian_Italy.1252  LC_CTYPE=Italian_Italy.1252
[3] LC_MONETARY=Italian_Italy.1252 LC_NUMERIC=C
[5] LC_TIME=Italian_Italy.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_2.15.2


Kind regards

Simone
______________________________________________________


Simone Giannerini
Dipartimento di Scienze Statistiche "Paolo Fortunati"
Universita' di Bologna
Via delle belle arti 41 - 40126  Bologna,  ITALY
Tel: +39 051 2098262  Fax: +39 051 232153
http://www2.stat.unibo.it/giannerini/
#
Just to add, on documentation, to my previous post. The following 
illustrates my point.

# This is the last instruction in the original post.
plot.ts(x=1, y=1, type="n", xy.labels=FALSE) # does not show the plot

plot.ts(x=1, y=1, xy.labels=FALSE) # does show the plot, does not label 
it, documented
plot.ts(x=1, y=1, type="n") # does show the plot (labels it), not 
properly documented
plot.ts(x=1:151, y=1:151, type="n") # does not show the plot, documented

Rui Barradas
Em 29-12-2012 19:07, Rui Barradas escreveu:
1 day later
#
Rui,

thanks for looking into this and adding some relevant info,
to me it looks more like a bug than lack of documentation, in any case
we'll see if anyone of the core team would like to comment.

Ciao

Simone
On Sat, Dec 29, 2012 at 8:22 PM, Rui Barradas <ruipbarradas at sapo.pt> wrote:

  
    
#
On 12-12-30 4:23 PM, Simone Giannerini wrote:
Here's a comment:  submit a patch.

Duncan Murdoch