This is a nice feature. As a suggestion for 'other specialized' plots: stacked barplots e.g. for plotting $fevd would be nice.

Cheers,
Artur


2013/5/12 Allin Cottrell <cottrell@wfu.edu>
On Tue, 7 May 2013, Allin Cottrell wrote:

> This is partly in response to something Ignacio asked for a
> while ago, namely the ability to produce within a function
> package, plots that are usually only available via GUI
> means. [...]
>
> Here's an example of the whole deal:
>
> <hansl>
> open data9-7
> var 4 UNEMP PRIME
> # assign from irf() to bundle
> bundle b = irf(1, 2, 0.2)
> bplot(b, "display")
> </hansl>

Following Ignacio's report on this I've converted "bplot" to a
command in CVS. This should still be regarded as provisional /
experimental, but here's the example suitably modified:

<hansl>
open data9-7
var 4 UNEMP PRIME
bundle b = irf(1, 2, 0.2)
bplot b --output=display
</hansl>

This will also work in a function:

<hansl>
function void irf_plot (list Y, int targ, int shock,
                         scalar alpha)
   var 4 Y
   bundle b = irf(targ, shock, alpha)
   bplot b --output=display
end function

open data9-7
list Y = UNEMP PRIME
irf_plot(Y, 1, 2, 0.2)
</hansl>

As I mentioned before, this approach could be extended to
provide CLI means of reproducing various other specialized
plots -- if we think it's worthwhile.

Allin
_______________________________________________
Gretl-devel mailing list
Gretl-devel@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel