Page 1 of 2

Label obs in a scatter plot

Posted: Mon Mar 03, 2014 6:37 pm
by JennyH
Hi, I created a workfile with three series. The first one is country names and so it is an alpha series. The second and third are GDP and inflation for each country. Now I generate a scatter plot with GDP on the X axis and inflation on the Y. But my problem is that, when I tried to label each observation in the scatter plot with its country name, I clicked on Graph Opinions -> Axes and Scaling -> Obs/date axis, it shows that "Graph has no obs/date axis" in the Axis Assignment box. The Axis Labels where I am supposed to type in the alpha series is gray and does not allow me to do so. Could you please help me out? Thanks!

Re: Label obs in a scatter plot

Posted: Mon Mar 03, 2014 9:49 pm
by EViews Gareth
Enter the name of the alpha series in the box on the right that says "Optional alpha or series to use for observation labels".

Re: Label obs in a scatter plot

Posted: Tue Mar 04, 2014 1:06 pm
by JennyH
Yes, I tried that before I posted the question here. That box area is gray and does not allow to type in anything. It says: "Series labels cannot be used with this graph." The reason I guess, as said in the original post, is that "Graph has no obs/date axis." as shown in the Axis Assignment box. How can I fix it? Thanks a lot!
Enter the name of the alpha series in the box on the right that says "Optional alpha or series to use for observation labels".

Re: Label obs in a scatter plot

Posted: Tue Mar 04, 2014 1:09 pm
by EViews Gareth
Describe exactly what you've done.

Re: Label obs in a scatter plot

Posted: Tue Mar 04, 2014 2:13 pm
by JennyH
As said in the original post, I created a workfile for cross-sectional data. The data were imported to EViews and so there were three series in that workfile, Country (names), GDP, and Inflation. I opened GDP and Inflation as a group and the country names are shown on the left as identifier. But when I graph a scatter plot with GDP on the X axis and Inflation on the Y, I tried to label each observation with its country name. You said there is a place saying that "Optional alpha or series to use for observation labels". I saw that place is frozen in gray, showing "Series labels cannot be used with this graph."
Describe exactly what you've done.

Re: Label obs in a scatter plot

Posted: Tue Mar 04, 2014 2:20 pm
by EViews Gareth
If the workfile is already structured with country as the ID series, then the scatter will automatically get those names as the obs label.

You can only provide an alternative set of labels if the workfile is not already structured by one.

Re: Label obs in a scatter plot

Posted: Tue Mar 04, 2014 2:28 pm
by JennyH
How do I know "if the workfile is already structured with country as the ID series"? I open the group of GDP and Inflation and see each country's name lined up (in blue) on the far left side of the window. Does this mean it is structured with country as the ID series? If so, that is where I am and I do not see the scatter automatically get the names on the obs label.
If the workfile is already structured with country as the ID series, then the scatter will automatically get those names as the obs label.

You can only provide an alternative set of labels if the workfile is not already structured by one.

Re: Label obs in a scatter plot

Posted: Tue Mar 04, 2014 2:30 pm
by EViews Gareth
Yes, if the country names show on the spreadsheet view, then it is structured that way. What obs labels do you see if not the country names?

Re: Label obs in a scatter plot

Posted: Tue Mar 04, 2014 3:49 pm
by JennyH
EViews says "Graph has no obs/date axis". I don't see any obs labels on the scatter.
Yes, if the country names show on the spreadsheet view, then it is structured that way. What obs labels do you see if not the country names?

Re: Label obs in a scatter plot

Posted: Tue Mar 04, 2014 4:05 pm
by EViews Gareth
Turn obs labeling on.
Graph Options->Graph Elements->Symbol/Obs Label.

Re: Label obs in a scatter plot

Posted: Tue Mar 04, 2014 4:40 pm
by JennyH
What I see on my EViews 8 is Graph Options -> Graph Elements and I do not find "Symbol/Obs Label".

What I found is that there are four modules under Graph Elements: Lines & Symbols, Fill Areas, Bar-Area-Pie, and Boxplots. Which one I should go with? I clicked on Lines & Symbols and did not find anywhere I could turn on obs labeling.

Re: Label obs in a scatter plot

Posted: Tue Mar 04, 2014 5:34 pm
by EViews Gareth
...

Re: Label obs in a scatter plot

Posted: Tue Mar 04, 2014 5:48 pm
by JennyH
So, where can I turn on obs label on the page you showed? Just choose "Auto Choice" and/or "Symbol Only"? I did both and it made no difference. Still says "Graph has no obs/date axis" and no obs label shows up.

Re: Label obs in a scatter plot

Posted: Tue Mar 04, 2014 6:22 pm
by EViews Gareth
Post your workfike

Re: Label obs in a scatter plot

Posted: Sun Mar 09, 2014 4:58 pm
by JennyH
Below are the images of workfile, obs/date axis, and graph elements, respectively. Thanks!
EViews Workfile.jpg
EViews Workfile.jpg (145.48 KiB) Viewed 11644 times
EViews ObsDate axis.jpg
EViews ObsDate axis.jpg (176.01 KiB) Viewed 11644 times
EViews Graph Elements.jpg
EViews Graph Elements.jpg (173.85 KiB) Viewed 11644 times