Line graph with different values on left and right axes?

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

bobshackleton
Posts: 25
Joined: Wed Mar 23, 2011 6:50 am

Line graph with different values on left and right axes?

Postby bobshackleton » Wed Apr 06, 2011 8:33 am

How would I write a line command to have the first series' values on the left axis and the second series' values on the right axis? Thanks, Bob

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

Re: Line graph with different values on left and right axes?

Postby EViews Gareth » Wed Apr 06, 2011 8:43 am

Code: Select all

graph.setelem(2) axis(r)

bobshackleton
Posts: 25
Joined: Wed Mar 23, 2011 6:50 am

Re: Line graph with different values on left and right axes?

Postby bobshackleton » Wed Apr 06, 2011 10:59 am

Sorry, I tried that and it doesn't seem to work with a line command. That is, the following code just gets me an error:

Code: Select all

line iprod lxnfa graph.setelem(2) axis(r)
Do I need to exxplicitly create a graph object to create a two-axis line graph?

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

Re: Line graph with different values on left and right axes?

Postby EViews Gareth » Wed Apr 06, 2011 11:00 am

via command, yes.

bobshackleton
Posts: 25
Joined: Wed Mar 23, 2011 6:50 am

Re: Line graph with different values on left and right axes?

Postby bobshackleton » Wed Apr 06, 2011 12:01 pm

OK thanks


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests