more on scatter plot labels
by John Paravantis
I am talking about adding the values of a qualitative variable, e.g.
country codes, as labels.
As an example from my megacity research, imagine a scatter plot of carbon
footprint (y-axis) vs city population (x-axis). In such a plot, it would be
very useful if the data points were labeled with the megacity name.
So I am suggesting that two separate improvements be considered for gretl:
(1) Add the capability of handling qualitative (i.e. text) variables,
something that is sorely missing right now. I have to manually delete
columns containing text from Excel files that I want to open in gretl,
which is inconvenient. If anything else, gretl could ignore such columns,
not give an error and refuse to open such a file.
(2) Add the capability of adding a qualitative variable as labels of the
points of a scatter plot.
Many thanks to all for your thoughts,
John
On Wed, Jun 1, 2022 at 1:00 AM <gretl-users-request(a)gretlml.univpm.it>
wrote:
> Am 31.05.2022 um 00:19 schrieb John Paravantis:
> > If I may get back to my suggestion, I understand that it may be possible
> > to add data labels via commands, but it would appear to me that it would
> > not be too difficult to add an option of selecting the values of a
> > variable as labels, since the option of adding labels to individual
> > points is already built in in the edit dialog of a scatter plot.
>
> John, let me ask the more fundamental question, why would one want the
> values as labels? I mean in a scatter plot the values are on the axes
> and the location of the data point communicates those values already.
> OK, sometimes one wants to see the exact digits and then a kind of
> mouse-over tooltip effect is nice. But really printing/displaying the
> values right now does not sound to me like a natural GUI feature.
>
> cheers
> sven
>
2 years, 5 months
Re: A wish to save .gretl dataset from a scrip
by Fred Engst
Allin, you are my hero!
I hope it wasn’t too hard to do, just to fulfill my wish.
I tried and it work like a charm!
I can’t thank you enough for this.
Without this, if I discover an error in the model I did, I would have to redo the last part manually for all the students.
Now it is only a click of the button after I made the corrections.
The power of gretl just getting better and better.
Best,
Fred
> Date: Tue, 31 May 2022 19:04:39 -0400
> From: "Cottrell, Allin" <cottrell(a)wfu.edu>
> Subject: [Gretl-users] Re: Helps on a more efficient script without
> loops, plus a wish to save .gretl dataset from a scrip
> To: Gretl list <gretl-users(a)gretlml.univpm.it>
> Message-ID:
> <CA+BOgOBr4CY2UibWAqYcoDoyLYous-J_yi-ZPmhczVnbD1+zaw(a)mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> On Mon, May 30, 2022 at 9:19 PM Fred Engst <engst.uibe(a)gmail.com> wrote:
>
>> As you can see, the way I’m using gretl, I need to send my students a .gretl dataset with all the models and perhaps graphs. As is, I need to save each dataset manually, and it is a bit time consuming when there are more than just a few students. I wish I can do this through a script, perhaps using gretlcli to do that, if any of you can suggest a way.
>
> You're talking about a gretl session file, not just a dataset (which
> is easily saved via script using either the GUI program or gretlcli,
> using the "store" command).
>
> Saving a session file via gretlcli is inherently impossible since that
> program has no notion of a "session", no named models or graphs.
> However, saving a session file via the command-line (script or
> console) in the GUI program, while it has not been possible before, is
> now implemented in git and snapshots. You use the "store" command,
> giving the name of the file to be saved the suffix ".gretl", as in
>
> store session01.gretl
>
> Note, though, that you cannot specify a list of series to save (as in
> standard "store" usage) -- or if you do, the effect is to save a gretl
> dataset (in the strict sense). with ".gdt" appended to whatever
> filename was given. There's no provision in session-saving to subset
> the existing series, though of course you can achieve that effect by
> deleting some series before doing the save.
> Here's a trivial example of the new usage:
>
> <hansl>
> open data4-1
> m1 <- ols 1 0 2
> g1 <- gnuplot price sqft
> store mysession.gretl
> </hansl>
>
> Allin
>
> ------------------------------
2 years, 5 months
Don’t hold back on any suggestion for a more efficient script without loops
by Fred Engst
>
> Date: Tue, 31 May 2022 10:24:53 +0200
> From: Sven Schreiber <svetosch(a)gmx.net>
> Subject: [Gretl-users] Re: Helps on a more efficient script without
> loops, plus a wish to save .gretl dataset from a scrip
> To: gretl-users(a)gretlml.univpm.it
> Message-ID: <e7440826-c42f-a542-8d2a-d5230699d2cc(a)gmx.net>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Am 31.05.2022 um 03:18 schrieb Fred Engst:
>
>> 1) Helps on a more efficient script without loops:
>> Since gretl is not only a great research tool, but also a great teaching tool, I’m trying to extent its usefulness.
>> For my online teaching of econometrics,
>
> OK, first I was tempted to suggest other ways to produce your lists, but
> if your method is working for you, what's actually the problem? Using
> loops is not evil, and I don't think efficiency is really an issue here.
>
> cheers
> sven
>
> —
sven, don’t hold back on any suggestions, please!
Don’t we want to vectorize as much as possible in our coding to make it more compact, in the tradition of one-liner?
Fred
2 years, 5 months