Identfifier as observation label scatter plot

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

stefanp
Posts: 63
Joined: Wed Sep 30, 2015 12:24 am

Identfifier as observation label scatter plot

Postby stefanp » Wed May 24, 2017 1:11 am

Hi there,

I have a panel data set with two dimensions (in addition to time) with a specific identifier for each dimension. I want to create scatter plots and use one of the identifier series to label each observation in a scatter plot.

In know I can choose "Obs.Label" to add it, but that adds the joint identifier (for both dimensions) and the corresponding period.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Identfifier as observation label scatter plot

Postby EViews Gareth » Wed May 24, 2017 7:10 am

Create an alpha series with the labels you want, then use

Code: Select all

graph.setobslabel nameofseries

stefanp
Posts: 63
Joined: Wed Sep 30, 2015 12:24 am

Re: Identfifier as observation label scatter plot

Postby stefanp » Mon May 29, 2017 5:58 am

Not sure we are on the same page here:

That's what I do:

Code: Select all

group temp a b freeze(graph) temp.scat(panel=stack) graph.setobslabel identifier
"identifier" is an alpha series. However, the plot appears without observation labels, only the standard circles are visible.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests