cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
ARETI052
Level III

Some of the data columns won't appear as box plots in the graph

names Default To Here(1);

MyGraph = Function({yCol, xCol, gpx}, {default local},
    vars = Eval Expr(Variables(
        X(Expr(xCol)),
        Group X(Expr(gpx))
    ));
    
    pts = Expr(Box Plot(X));
    
    For(j = 1, j <= Min(8, N Items(yCol)), j++,
        Insert Into(vars, Eval Expr(Y(Expr(yCol[j]))));
    );
    
    gb = Expr(
        Graph Builder(
            Size(1255, 981),
            Show Control Panel(0),
            // Variables section will be inserted here
            Elements(Box Plot(X, Y(1), Y(2), Y(3), Y(4), Y(5), Y(6), Y(7), Y(8), Legend(11))),
            Local Data Filter(
                Add Filter(
                    columns(:Test Stage, :Sublot, :Temperature, :Soft Bin),
                    Display(:Test Stage, N Items(4)),
                    Display(:Soft Bin, N Items(15))
                )
            )
        )
    );
    Insert Into(gb, Name Expr(vars));
    
    VListBox(gb)
);

Hi, 

 

The code attached is not won't plot the Y - data columns as box plots after the 2nd one, and all the box plots wont share the same Y-axis. I want to make sure that the all the columns are plotted as box plots and share the same Y-axis. The code was working fine for plotting points, is plotting box plots different from plotting the points?

 

Thanks.

ARETI052_0-1719597808493.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
hogi
Level XII

Re: Some of the data columns won't appear as box plots in the graph

the difference between individual subplots and same subplot is explained here:

How to let user choose multiple columns for graph builder 

 

The Trick:
"position(1)" - if you don't specify it to be 1, with every new Y variable position is incremented automatically and the column will be added with a new subplot.

hogi_0-1719598647243.png

 

View solution in original post

2 REPLIES 2
hogi
Level XII

Re: Some of the data columns won't appear as box plots in the graph

the difference between individual subplots and same subplot is explained here:

How to let user choose multiple columns for graph builder 

 

The Trick:
"position(1)" - if you don't specify it to be 1, with every new Y variable position is incremented automatically and the column will be added with a new subplot.

hogi_0-1719598647243.png

 

ARETI052
Level III

Re: Some of the data columns won't appear as box plots in the graph

I see, thanks!