- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
creating multiple bivariate chart
Hello,
I would like to create thru a script multiple bivariate chart as:
tablel01 - column name list
xvar = list of column to use as X
yvar = list of column to use as Y
table02 data table
create the bivariate charts based on xvar and yvar.
I tried as follow but it doesnt work ...
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//open table01
table01 = Open("C***");
xvar = Column(table01,1) << getValues;
yvar = Column(table01,2) << getValues;
tr_loop_limit = Nitems(xvar);
//select table02
current data table(table02);
Bivariate(
for(i=1, i< tr_loop_limit +1, i++,
Y(eval(yvar)),
X(eval(xvar))
)
);
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
thank you for your support
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: creating multiple bivariate chart
NamesDefaultToHere(1);
// Make a table to use (dt)
dt = NewTable("Many Bivariate Plots",
NewColumn("Col 1",Numeric, Continuous, Formula(RandomNormal())),
NewColumn("Col 2",Numeric, Continuous, Formula(RandomNormal())),
NewColumn("Col 3",Numeric, Continuous, Formula(RandomNormal())),
NewColumn("Col 4",Numeric, Continuous, Formula(RandomNormal())),
NewColumn("Col 5",Numeric, Continuous, Formula(RandomNormal())),
AddRows(20)
);
// Make lists of columns in dt to use
xVars = dt << getColumnNames("String");
yVars = dt << getColumnNames("String");
// Use Fit Y By X' platform
fybx = dt << FitYByX(Y(Eval(yVars)), X(Eval(xVars)));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: creating multiple bivariate chart
NamesDefaultToHere(1);
// Make a table to use (dt)
dt = NewTable("Many Bivariate Plots",
NewColumn("Col 1",Numeric, Continuous, Formula(RandomNormal())),
NewColumn("Col 2",Numeric, Continuous, Formula(RandomNormal())),
NewColumn("Col 3",Numeric, Continuous, Formula(RandomNormal())),
NewColumn("Col 4",Numeric, Continuous, Formula(RandomNormal())),
NewColumn("Col 5",Numeric, Continuous, Formula(RandomNormal())),
AddRows(20)
);
// Make lists of columns in dt to use
xVars = dt << getColumnNames("String");
yVars = dt << getColumnNames("String");
// Use Fit Y By X' platform
fybx = dt << FitYByX(Y(Eval(yVars)), X(Eval(xVars)));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: creating multiple bivariate chart
Ian,
good evening.
It works perfectly .... I can now go on with my little jmp scripting until next big issue blocks the road.
thank you very much for your very helpful and quick answer, makes my end of the day GREAT!!!!
best regards
Lionel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: creating multiple bivariate chart
I'm happy to help, Lionel, and I know that's true for the community members in general. So please do keep posting when the way ahead isn't clear . . .