cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
mbwun
Level I

Adding reference lines for sigma to a distribution histogram

I would like to customize my distribution histogram by adding reference lines for +/- 3 sd but I can't figure out how to get the 'Std Dev' without entering it manually.

What I am looking for is a customization that can be pasted into many separate distribution plots.

Any suggustions would be most helpful. - Tim

1616_example.jpg

1 REPLY 1
ptkguy
Level II

Re: Adding reference lines for sigma to a distribution histogram

One way to get column stats is with summarize():

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

//Get column stats

summarize(

  sigma=StdDev(:height),

  avg = mean(:height)

);

siglow = avg - 3 * sigma;

sighigh = avg + 3 * sigma;

//make distribution

Distribution(

  Continuous Distribution( Column( :height ), Count Axis( 1 ) ),

  SendToReport(

  Dispatch(

  {"height"},

  "1",

  ScaleBox,

  {

  Min( 45 ), Max( 78), Inc( 5 ),Minor Ticks( 1 ),

  Add Ref Line( eval(siglow), Dotted, "Black","-3sd" ),

  Add Ref Line( eval(sighigh), Dotted, "Black","+3sd" )

  }

  )

  )

);

Recommended Articles