Closed mpadge closed 4 years ago
Users of ts
objects would be expecting time on the x-axis as this is the default plot.ts
. As Mark states, there may be a reason for not having a separate plot.tbl_ts
method, but if not then the anticipated behaviour would be time on the x-axis.
Please feel free to judge this as out-of-scope. It's just a thought raised by @rkillick, and which would personally make sense to me.
What i would like
Default
plot
ontsibble
objects to put theindex
axis on the horizontal (unless otherwise specified or controlled).Current behaviour
The index variable is automatically put on 2nd (y) axis, because it's the 2nd column.
A solution
(This is nothing like what implemented code should look like, but illustrates the point.)
Created on 2020-06-25 by the reprex package (v0.3.0)
There is current no default
plot.tbl_ts
method, for likely very good and understandable reasons. Foremost among these is unintended side effects, which this makes no attempt to anticipate. Nevertheless might be worth thinking about?