BookmarkSubscribe
Choose Language Hide Translation Bar

Variability Gage plot labeling of means

Hello!

Whenever I plot a variability gage plot, I use text boxes in order to label the means displayed in the summary report below the plot. Is there an easier way to quickly create labels?

My only thought on this would be to create a new column to calculate the means of each grouping so that I can then label rows by that new column. However, I have no idea how to "group-by" in the formula editor.

I would hate to have to export the summary report as its own table and then try to join the two tables just for labeling purposes. Seems easier to just add text...

Highlighted

Re: Variability Gage plot labeling of means

>> I have no idea how to "group-by" in the formula editor.

I didn't either, but by chance this came up last week in the forums. Took me a while to remember where it was (link). I'll post a bit of detail on it but there's a better way, I think.

If you open up the big class.jmp sample data file (jsl code open( "\$SAMPLE_DATA\Big Class.jmp"); will open it), then add a column with the following formula, you'll see it contains the average height for each age group.

Formula is: Col Mean(:height, :age). But this is in a new column and won't show up in your variability gauge plot for whatever column (e.g. height) that you're plotting.

I think you might want to skip the formula step, summarize your column(s) by whichever group variable (table -> summary platform, put :mean(height) in stats box, :age in group box, and set stats name column format to 'column' for easy stacking later.

right click green triangle (or red in earlier versions) to edit and view source script:

Data Table( "Big Class" ) << Summary(
Group( :age ),
Mean( :height ),
Freq( "None" ),
Weight( "None" ),
statistics column name format( "column" ) )

Stack it

Data Table( "Big Class" ) << Concatenate( Data Table( "Big Class By (age)" ) )

Label the new rows. Label the :height column. Then do your plot. Should work ok.

You can change the marker from a black dot to something less like a data point (colored hozizontal line) so it is clear that these are not actual data points.  (Edit: Exclude, but don't hide, the new rows to keep them from disturbing the valid data points.)

As far as I know there is no easy way to add text to plots.
{"ft_lang_label":"__label__en","ft_lang_prob":0.88901556,"math_prob":0.72001815,"size":1606,"snap":"2019-43-2019-47","text_gpt3_token_len":398,"char_repetition_ratio":0.09987516,"word_repetition_ratio":0.013793103,"special_character_ratio":0.26027396,"punctuation_ratio":0.13513513,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9578927,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-19T13:21:00Z\",\"WARC-Record-ID\":\"<urn:uuid:b32ff22a-d663-48a3-a570-59b2f273615b>\",\"Content-Length\":\"622344\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:738ec6e5-e609-4e0c-bdb7-a262688b1567>\",\"WARC-Concurrent-To\":\"<urn:uuid:3fa20187-454b-4aab-8150-ddea3ecd933a>\",\"WARC-IP-Address\":\"208.74.205.23\",\"WARC-Target-URI\":\"https://community.jmp.com/t5/Discussions/Variability-Gage-plot-labeling-of-means/m-p/60296/highlight/true\",\"WARC-Payload-Digest\":\"sha1:72FBITBBE6J3O723DVEEIOONRHDKLJLK\",\"WARC-Block-Digest\":\"sha1:CJNMYL2CCAJMHWZJ6TXQP6QIXXXYYDPI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570986693979.65_warc_CC-MAIN-20191019114429-20191019141929-00532.warc.gz\"}"}