Subscribe Bookmark RSS Feed

creating multiple bivariate chart

KinKame

Community Trekker

Joined:

Nov 30, 2015

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

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

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)));

3 REPLIES
Solution

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)));

KinKame

Community Trekker

Joined:

Nov 30, 2015

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

ian_jmp

Staff

Joined:

Jun 23, 2011

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 . . .