Scatpair with common symbol type

For questions regarding programming in the EViews programming language.

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

mariposa
Posts: 21
Joined: Tue Dec 02, 2008 7:04 am

Scatpair with common symbol type

Postby mariposa » Fri Aug 07, 2009 5:18 am

Hi everybody,

I am trying to get a scatterplot from a group object with a common symbol type and color for all observations. Is there any possibility to programm this? I know that for panel objects it is possible, but the same commands do not work for my group.

If it helps, here comes my code:

Code: Select all

'make aggregate group (each country group consists of two series (gdp and exports)) group groupworld groupx_DZA groupx_ARG groupx_AUS groupx_AUT 'make scatter plot (plots the gdp of one country against the exports of the same country) groupworld.scatpair
Thanks and best regards!

mariposa
Posts: 21
Joined: Tue Dec 02, 2008 7:04 am

Re: Scatpair with common symbol type

Postby mariposa » Fri Aug 07, 2009 7:04 am

Hi again,

in the meantime I figured out a solution:

Code: Select all

freeze(scat{!i}) groupworld.scatpair(o=monochrome) scat{!i}.legend -display 'does not display the series names for !obs=1 to 49 'number of countries scat{!i}.setelem(!obs) symbol(2) lcolor(black) next
If someone has a more elegant way to programm it, I would still like to know it. However, as this also serves the purpose, I am fine for the moment :D

Regards!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests