On Mon, 5 Dec 2011, artur tarassow wrote:
2011/12/5 Allin Cottrell <cottrell(a)wfu.edu>
> On Mon, 5 Dec 2011, artur tarassow wrote:
>
>> Btw, is there a reason why the "scatters" command does not work for
>> matrices?
>
> Yes: nobody has hooked it up to do so ;-)
>
> It wouldn't be terribly difficult, but it wouldn't be trivial
> and nobody has requested it.
Ok let me try to convince you ;-)
A more concrete example is the plotting of the
error-correction terms (vecm, ec plot). It would be nice to
have a diagram for each cointegration relation. Since these
are stored a matrix (as I assume), this would (maybe)
require some matrix-plotting-options for the "scatters"
command :-)
OK, since enhancement of graphing has been a sub-plot of
working towards gretl 1.9.7, I've added a --matrix=whatever
option to the "scatters" command. You can give the x and y
specifications with series, but if you omit them you get a
plot of all columns of the matrix against time (or an index
variable). While I was at it I raised the max number of plots
in "scatters" to 16. Example:
<hansl>
matrix = mnormal(40,16)
scatters --with-lines --output=display --matrix=m
</hansl>
Allin Cottrell