Choose Language Hide Translation Bar

Community Trekker

Joined:

Nov 30, 2015

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

)

);

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

1 ACCEPTED SOLUTION

Accepted Solutions

Staff

Joined:

Jun 23, 2011

Solution

## 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())),

);

// 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 3

Staff

Joined:

Jun 23, 2011

Solution

## 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())),

);

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

Community Trekker

Joined:

Nov 30, 2015

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

Staff

Joined:

Jun 23, 2011

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