multiple graphs with 2 or more series on each

For questions regarding programming in the EViews programming language.

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

remuct
Posts: 21
Joined: Fri May 12, 2017 6:47 am

multiple graphs with 2 or more series on each

Postby remuct » Mon Jun 20, 2022 5:42 pm

Hi,
I would like to know if there is a way of creating multiple graphs, the difficulty being that each graph should contain 2 series. For example, suppose I have the couples of series (x1,y1), (x2,y2),... (x10,y10) for 10 countries. How can I plot the two series for each country as a set of ten graphs aligned, say, in 5 columns with horizontal and vertical spacing of 1 virtual inch?
Thanks a lot

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

Re: multiple graphs with 2 or more series on each

Postby EViews Gareth » Tue Jun 21, 2022 9:20 am

Code: Select all

create m 1990 2020

for !i=1 to 10
   series y!i=nrnd
   series x!i=nrnd
next


for !i=1 to 10
   group g_!i x!i y!i
   freeze(graph_!i) g_!i.line
next

graph master.merge graph_1 graph_2 graph_3 graph_4 graph_5 graph_6 graph_7 graph_8 graph_9 graph_10
master.align(5,1,1)
show master
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 6 guests