cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
KinKame
Level IV

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

1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp
Level X

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

View solution in original post

3 REPLIES 3
ian_jmp
Level X

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

KinKame
Level IV

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

ian_jmp
Level X

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