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
rahulsmils
Level III

passing variables to variability chart

Hi all,

I am new to jmp. So please overlook syntax.

I am trying to plot a variability chart as below:

Variability Chart(

       X( :age :height :gender ),

          ......

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

age, gender , height are data columns

I want to make arguments to X variable and store it separately.

Something like declaring first

Xarg_list=[:age :height :gender ]

and then using:

Variability Chart(

       X=Xargs_list;

          ......

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

So If I want to add new column of weight or delete any column in list of arguments I just need to change Xargs_list

Xarg_list=[:age :height :gender :weight];


Any help with forming correct syntax is welcome.


Thanks


12 REPLIES 12
wu
wu
Level III

Re: passing variables to variability chart

Thanks.
Could you understand how this script works:
(r << xpath("//IfBox/OutlineBox")) << delete;
txnelson
Super User

Re: passing variables to variability chart

The xPath() function is described in the Scripting Index

     Help==>Scripting Index...........search for xpath

But in @ms example, the xPath() function looks through all of the display output to find all of the examples where an IfBox() is followed by an OutlineBox(), and returns all found examples, to which the <<delete message is passed to them, and that closes the Outline Boxes.  Look into the Scripting Guide for information on how to work with the Display Tree output in JMP

     Help==>Books==>Scripting Guide

Jim
wu
wu
Level III

Re: passing variables to variability chart

How to pass a variable value to the char option of
x=1; Std Dev Chart( x );
Thanks.