Subscribe Bookmark RSS Feed

Can I put two graphs from two data tables into one page

The jsl below doesn't work. Any suggestions?

V List Box(
tbl1 = ("C:\table1.jmp")
tbl1 << Scatterplot Matrix(
Y( :age ),
X( :height ),
),

tbl2 = ("C:\table2.jmp")
tbl2 << Scatterplot Matrix(
Y( :age ),
X( :height ),
)
)
5 REPLIES
ms

Super User

Joined:

Jun 23, 2011

Your script does not make much sense to me but it is possible to put two graphs into one page using << journal.


plot1=tbl1< Y( :age ),
X( :height )
);
plot2=tbl2< Y( :age ),
X( :height )
);
plot1<plot2<
If you don't mean "page" as in page, but rather a custom report, then I think you must define the variables for the tables and individual reports outside the VListBox-object. Thereafter you can use your reports or elements within them to make a custom report.
Thanks a lot!

The following is the jsl I'm using and it doesn't work. Why?

wind = New Window( "Agency Analysis Window",

V List Box(

plot1 = Agency_submission << Scatterplot Matrix(
Y( :Success ),
X( :Submission )
),
plot2 = Agency_subm&Rev << Scatterplot Matrix(
Y( :Success ),
X( :Submission )
);
plot1 << journal;
plot2 << journal;
);
);
mpb

Super User

Joined:

Jun 23, 2011

What do you mean by "it doesn't work"?
ms

Super User

Joined:

Jun 23, 2011

You do not need the << journal commands if you indend to use the NewWindow-command (the << journal creates a new window automatically, unless you already have a journal open), and in anyway I don't think you can use <

Try this (the <
dt=datatable("name of your data table");
wind = New Window( "Agency Analysis Window",

V List Box(
plot1 = dt << Scatterplot Matrix(
Y( :Success ),
X( :Submission )),
plot2 = dt << Scatterplot Matrix(
Y( :Success ),
X( :Submission ))
));
Wind<
This works perfectly! Thanks a lot MS!