Subscribe Bookmark RSS Feed

How to make a stacked data table invisible?

isabellet14

Community Trekker

Joined:

Jun 30, 2016

I have written a script that stacks some of my data columns and then produces a graph from those stacked columns. I do not want the stacked data table to appear when I run this script, however (I only want the graph) but cannot figure out how to make the new table invisible. For example, if I have the following, is there somewhere I can add in an Invisible parameter so the stacked table doesn't appear? Thanks in advance!

Data Table( "test" ) <<

Stack(

       columns(

               :Name(

                         "example"

               )

               :Name(

                         "example"

               )

          )

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Hello,

The following example demonstrates where the Invisible option can be placed in the Stack():

Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Dogs.jmp" );

dt << Stack(

    columns( :LogHist0, :LogHist1, :LogHist3, :LogHist5 ),

    Source Label Column( "Time" ),

    Stacked Data Column( "Log Hist" ), Invisible

);

Hope this helps.

Wendy

Wendy
4 REPLIES
ron_horne

Super User

Joined:

Jun 23, 2011

hi isabellet14​,

try this:

Names Default To Here( 1 );

//This message applies to all display box objects

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt10 = dt << Stack( columns( :height, :weight ), Source Label Column( "Label" ), Stacked Data Column( "Data" ), invisible );

Distribution(

      SendToByGroup( {:Label == "height"} ),

      Stack( 1 ),

      Continuous Distribution( Column( :Data ), Horizontal Layout( 1 ), Vertical( 0 ), Show Percents( 1 ), Customize Summary Statistics( Sum( 1 ) ) ),

      By( :Label ),

      SendToByGroup(

            {:Label == "height"},

            SendToReport(

                  Dispatch( {"Distributions Label=height", "Data"}, "Distrib Histogram", FrameBox, {DispatchSeg( Hist Seg( 1 ), Histogram Color( 53 ) )} )

            )

      ),

      SendToByGroup(

            {:Label == "weight"},

            SendToReport(

                  Dispatch( {"Distributions Label=weight", "Data"}, "Distrib Histogram", FrameBox, {DispatchSeg( Hist Seg( 1 ), Histogram Color( 53 ) )} )

            )

      )

);

isabellet14

Community Trekker

Joined:

Jun 30, 2016

Thanks so much for the prompt help, Ron!

Solution

Hello,

The following example demonstrates where the Invisible option can be placed in the Stack():

Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Dogs.jmp" );

dt << Stack(

    columns( :LogHist0, :LogHist1, :LogHist3, :LogHist5 ),

    Source Label Column( "Time" ),

    Stacked Data Column( "Log Hist" ), Invisible

);

Hope this helps.

Wendy

Wendy
isabellet14

Community Trekker

Joined:

Jun 30, 2016

Thanks so much for the prompt help