Subscribe Bookmark RSS Feed

Insert Legend command into pre-scripted Variability chart

juliet

Community Trekker

Joined:

Feb 19, 2013

Hi All,

I feel a little silly that I can't figure this out, but I can't seem to add a legend to my variability chart script. I'm trying to add a legend for my "Ova" column. The row states have already been set, so I don't need that command. So from what I've read, I should be able to use something like this:

Report ( var ) [FrameBox(1)] << Row Legend ("Ova")

But that isn't working.

Here is the whole code for my variability chart. My only thought is that I'm not putting the legend command in the right place?

st = Data Table( "JoinedSubset");

st << Variability Chart(

  Y( :LLOD CFU ),

  X( :Media, :Temp, :Timepoint ),

  Max Iter( 100 ),

  Conv Limit( 0.00000001 ),

  Number Integration Abscissas( 128 ),

  Number Function Evals( 65536 ),

  Analysis Type( Name( "Choose best analysis (EMS REML Bayesian)" ) ),

  Process Variation( 0 ),

  Variability Summary Report( 1 ),

  Std Dev Chart( 1 ),

  Points Jittered( 1 ),

  SendToReport(

  Dispatch(

  {"Variability Chart for LLOD CFU"},

  "2",

  ScaleBox,

  {Min( -100 ), Max( 500 ), Inc( 100 ), Minor Ticks( 1 ),

  Rotated Labels( "Horizontal" )}

  ),

  Dispatch(

  {"Variability Chart for LLOD CFU"},

  "Variability Chart",

  FrameBox,

  {Frame Size( 590, 217 ), Marker Size( 4 )}

  ))

);

Thanks very much for any and all help!

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Here's in example using some of the JMP sample data. Hope it's helpful!

Daniel

Variability Chart(

    Y( :weight ),

    X( :sex ),

    Max Iter( 100 ),

    Conv Limit( 0.00000001 ),

    Number Integration Abscissas( 128 ),

    Number Function Evals( 65536 ),

    Analysis Type( Name( "Choose best analysis (EMS REML Bayesian)" ) ),

    Process Variation( 0 ),

    Std Dev Chart( 0 ),

    Points Jittered( 1 ),

    SendToReport(

        Dispatch(

            {"Variability Chart for weight"},

            "Variability Chart",

            FrameBox,

            {Row Legend(

                age,

                Color( 1 ),

                Color Theme( "JMP Default" ),

                Marker( 0 ),

                Marker Theme( "" ),

                Continuous Scale( 0 ),

                Reverse Scale( 0 ),

                Excluded Rows( 0 )

            )}

        )

    )

);

2 REPLIES
Solution

Here's in example using some of the JMP sample data. Hope it's helpful!

Daniel

Variability Chart(

    Y( :weight ),

    X( :sex ),

    Max Iter( 100 ),

    Conv Limit( 0.00000001 ),

    Number Integration Abscissas( 128 ),

    Number Function Evals( 65536 ),

    Analysis Type( Name( "Choose best analysis (EMS REML Bayesian)" ) ),

    Process Variation( 0 ),

    Std Dev Chart( 0 ),

    Points Jittered( 1 ),

    SendToReport(

        Dispatch(

            {"Variability Chart for weight"},

            "Variability Chart",

            FrameBox,

            {Row Legend(

                age,

                Color( 1 ),

                Color Theme( "JMP Default" ),

                Marker( 0 ),

                Marker Theme( "" ),

                Continuous Scale( 0 ),

                Reverse Scale( 0 ),

                Excluded Rows( 0 )

            )}

        )

    )

);

juliet

Community Trekker

Joined:

Feb 19, 2013

That worked! Thanks so much!