cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
%3CLINGO-SUB%20id%3D%22lingo-sub-217706%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBox%20Plot%20Axis%20Problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-217706%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EI've%20long%20used%20JMP%20to%20make%20box%20plots%20to%20show%20the%20distributin%20of%20data%20for%20a%20number%20of%20field%20sites%20on%20the%20same%20axis.%20I%20recently%20upgraded%20to%20JMP%2014%20and%20now%20the%20axis%20look%20different%20than%20they%20have%20in%20the%20past.%20Specifically%2C%20I'm%20running%20into%20an%20issue%20where%20the%20axis%20seems%20homogenized%20regardless%20of%20where%20the%20actual%20outliers%20are.%20For%20instance%2C%20in%20the%20old%20format%20if%20the%20outlier%20was%2020000%20then%20it%20would%20plot%204x%20higher%20than%20an%20outlier%20for%20a%20different%20site%20with%20a%20max%20outlier%20of%205000.%20To%20minimize%20these%2C%20we%20use%20a%20log%20axis%20and%20it%20looks%20something%20like%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JMP1.JPG%22%20style%3D%22width%3A%20977px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMP1.JPG%22%20style%3D%22width%3A%20977px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMP1.JPG%22%20style%3D%22width%3A%20977px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMP1.JPG%22%20style%3D%22width%3A%20977px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F18323iAFE94867FABFA84C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JMP1.JPG%22%20alt%3D%22JMP1.JPG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHowever%2C%20in%20the%20new%20version%2C%20the%20top%20of%20the%20y-axis%20is%20the%20same%20for%20every%20dataset%20even%20if%20they%20are%20very%20different.%20Instead%2C%20the%20outermost%20datapoint%20simply%20has%20a%20label%20on%20it.%20It%20goes%20without%20saying%20that%20this%20signifficantly%20impacts%20where%20the%20median%20would%20appear%20to%20be.%20Further%2C%20since%20all%20the%20sites%20don't%20have%20the%20same%20axis%2C%20there%20aren't%20actually%20labels%20on%20the%20y-axis%20which%20makes%20the%20whole%20thing%20somewhat%20pointless.%20Here%20is%20what%20that%20looks%20like%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JMP2.JPG%22%20style%3D%22width%3A%20632px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMP2.JPG%22%20style%3D%22width%3A%20632px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMP2.JPG%22%20style%3D%22width%3A%20632px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMP2.JPG%22%20style%3D%22width%3A%20632px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F18324i232739AAF40110F9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JMP2.JPG%22%20alt%3D%22JMP2.JPG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThings%20I've%20tried%20without%20sucess%3A%3C%2FP%3E%3CP%3E1)%20changing%20modeling%20type%20from%20continuous%20to%20ordinal%3C%2FP%3E%3CP%3E2)%20editing%20all%20sorts%20of%20axis%20settings.%20In%20fact%2C%20the%20one%20that%20I%20understand%20the%20least%20is%20the%20fact%20that%20the%20maxium%20on%20th%20scale%20is%20set%20to%201.02%20even%20though%20there%20is%20a%20ton%20of%20data%20above%20that%20number.%20That%20seems%20to%20indicate%20that%20the%20axis%20is%20auto-scaled%20but%20I%20can't%20figure%20out%20how%20to%20change%20it.%20Well%2C%20I%20can%20change%20it%20but%20it%20doesn't%20seem%20to%20help.%20Here%20is%20what%20the%20settings%20look%20like%3A%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JMP3.JPG%22%20style%3D%22width%3A%20832px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMP3.JPG%22%20style%3D%22width%3A%20832px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMP3.JPG%22%20style%3D%22width%3A%20832px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JMP3.JPG%22%20style%3D%22width%3A%20832px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F18325i4359BAAE7140B3DD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JMP3.JPG%22%20alt%3D%22JMP3.JPG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThanks%20for%20any%20and%20all%20help!%3C%2FP%3E%3CP%3EBrad%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-449898%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Box%20Plot%20Axis%20Problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-449898%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EI%20am%20also%20having%20this%20problem.%20Stacking%20the%20data%20is%20not%20a%20solution%20for%20my%20dataset.%20Where%20is%20the%20option%20to%20revert%20to%20a%20common%20axis%20for%20the%20dataset.%20I%20have%20right%20clicked%20everywhere.%20Looked%20at%20all%20the%20settings.%20This%20is%20an%20automatic%20scaling%20feature%20and%20I%20am%20unable%20to%20edit%20the%20script%20to%20get%20it%20to%20stop.%20I%20am%20using%20JMP%2016.1.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-365430%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Box%20Plot%20Axis%20Problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-365430%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EI%20also%20have%20this%20problem%2C%20but%20with%20a%20very%20large%20dataset%2C%20with%20%26gt%3B2k%20columns.%20It%20is%20not%20practical%20for%20me%20to%20stack%20the%20columns%20every%20time%20I%20want%20to%20create%20a%20plot%2C%20I%20would%20be%20there%20for%201%20week%20just%20to%20create%201%20report.%3C%2FP%3E%3CP%3EI%20work%20in%20semiconductor%20manufacturing%20and%20so%20have%20huge%20amounts%20of%20data%2C%20with%20many%20results%20requiring%20this%20type%20of%20box%20plotting%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20another%20way%20to%20autoscale%20all%20the%20box%20plots%20to%20the%20same%20scale%3F%3C%2FP%3E%3CP%3EIf%20not%2C%20I%20will%20have%20to%20move%20away%20from%20JMP%20for%20my%20analysis.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-217736%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Box%20Plot%20Axis%20Problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-217736%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThanks%20for%20your%20help.%20That%20seems%20to%20work%20well.%20I'm%20a%20bit%20confused%20as%20to%20why%20it%20has%20changed%20through%20time%20becaues%20it%20used%20to%20work%20the%20other%20way%20(I've%20certainly%20never%20used%20the%20stack%20feature).%20Nonetheless%2C%20I'm%20happy%20to%20have%20a%20solution.%3C%2FP%3E%3CP%3EThanks%2C%3CBR%20%2F%3EBrad%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-217735%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Box%20Plot%20Axis%20Problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-217735%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThanks%20for%20the%20detailed%20steps.%20I'll%20give%20it%20a%20try.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-217734%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Box%20Plot%20Axis%20Problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-217734%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EI%20am%20using%20Big%20Class%20as%20the%20example.%20Here%20is%20the%20result%20when%20I%20stack%20four%20numeric%20data%20columns%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20621px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20621px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20621px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20621px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F18326i51EDED9F963F5053%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture.PNG%22%20alt%3D%22Capture.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20is%20the%20same%20data%20plotted%20as%20the%20original%20separate%20(un-stacked)%20columns%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20602px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20602px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20602px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.PNG%22%20style%3D%22width%3A%20602px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F18327i05BF181591DA35A6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture.PNG%22%20alt%3D%22Capture.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECan%20you%20see%20the%20parallels%20between%20these%20results%20and%20the%20two%20of%20your%20own%20posted%20at%20the%20beginning%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-217731%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Box%20Plot%20Axis%20Problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-217731%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EPlease%20try%20what%20I%20suggested.%20Tables%20%26gt%3B%20Stack.%20Select%20the%2016%20data%20columns%20and%20click%20Stack.%20Enter%20the%20name%20of%20the%20data%20in%20the%20Data%20Column.%20Enter%20Site%20for%20the%20Label%20Column.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20you%20should%20be%20able%20to%20use%20the%20data%20column%20for%20Y%20and%20the%20label%20column%20for%20X.%20The%20scaling%20issue%20should%20not%20occur.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-217729%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Box%20Plot%20Axis%20Problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-217729%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EI%20somewhat%20see%20what%20you%20mean%20but%20the%20first%20one%20was%20always%20from%20multiple%20columns%20as%20well.%20I%20just%20didn't%20bother%20to%20rename%20the%20columns%20in%20the%20second%20one%20because%20I've%20been%20rebuilding%20it%20so%20often%20to%20see%20if%20I%20could%20get%20it%20to%20work.%20This%20data%20has%20always%20been%20organized%20with%20a%20column%20for%20each%20site%20and%20there%20isn't%20an%20easy%20way%20to%20reformat%20it%20because%20it%20doesn't%20have%20a%20column%20that%20identifies%20which%20site%20each%20datapoint%20is%20related%20to.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-217728%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Box%20Plot%20Axis%20Problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-217728%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EThe%20first%20example%20has%20a%20single%20column%20with%20many%20levels.%20It%20is%20a%20single%20Y.%20In%20the%20second%20example%2C%20you%20plotted%2016%20columns%20on%20the%20X%20axis.%20Try%20stacking%20the%2016%20columns%20and%20use%20the%20new%20lable%20column%20in%20the%20X%20role%20as%20before.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-771207%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Box%20Plot%20Axis%20Problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-771207%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Chris%2C%20try%20to%20add%20two%20%22fake%22%20data%20rows%20which%20equal%20the%20desired%20upper%20and%20lower%20limit%20of%20the%20Y%20axis%20and%20then%20hide%20them%20in%20your%20final%20plot.%20This%20will%20force%20all%20the%20data%20columns%20to%20have%20the%20same%20upper%20and%20lower%20limit%20range%20and%20should%20solve%20your%20problem.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Liangyu_0-1720466729837.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Liangyu_0-1720466729837.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65959i0FB1C76BDB46859F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Liangyu_0-1720466729837.png%22%20alt%3D%22Liangyu_0-1720466729837.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
miltonwall
Level I

Box Plot Axis Problem

I've long used JMP to make box plots to show the distributin of data for a number of field sites on the same axis. I recently upgraded to JMP 14 and now the axis look different than they have in the past. Specifically, I'm running into an issue where the axis seems homogenized regardless of where the actual outliers are. For instance, in the old format if the outlier was 20000 then it would plot 4x higher than an outlier for a different site with a max outlier of 5000. To minimize these, we use a log axis and it looks something like this:

 JMP1.JPG

However, in the new version, the top of the y-axis is the same for every dataset even if they are very different. Instead, the outermost datapoint simply has a label on it. It goes without saying that this signifficantly impacts where the median would appear to be. Further, since all the sites don't have the same axis, there aren't actually labels on the y-axis which makes the whole thing somewhat pointless. Here is what that looks like:

JMP2.JPG

Things I've tried without sucess:

1) changing modeling type from continuous to ordinal

2) editing all sorts of axis settings. In fact, the one that I understand the least is the fact that the maxium on th scale is set to 1.02 even though there is a ton of data above that number. That seems to indicate that the axis is auto-scaled but I can't figure out how to change it. Well, I can change it but it doesn't seem to help. Here is what the settings look like:
JMP3.JPG

Thanks for any and all help!

Brad

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Box Plot Axis Problem

Please try what I suggested. Tables > Stack. Select the 16 data columns and click Stack. Enter the name of the data in the Data Column. Enter Site for the Label Column.

 

Now you should be able to use the data column for Y and the label column for X. The scaling issue should not occur.

View solution in original post

9 REPLIES 9

Re: Box Plot Axis Problem

The first example has a single column with many levels. It is a single Y. In the second example, you plotted 16 columns on the X axis. Try stacking the 16 columns and use the new lable column in the X role as before.

miltonwall
Level I

Re: Box Plot Axis Problem

I somewhat see what you mean but the first one was always from multiple columns as well. I just didn't bother to rename the columns in the second one because I've been rebuilding it so often to see if I could get it to work. This data has always been organized with a column for each site and there isn't an easy way to reformat it because it doesn't have a column that identifies which site each datapoint is related to.

Re: Box Plot Axis Problem

Please try what I suggested. Tables > Stack. Select the 16 data columns and click Stack. Enter the name of the data in the Data Column. Enter Site for the Label Column.

 

Now you should be able to use the data column for Y and the label column for X. The scaling issue should not occur.

Re: Box Plot Axis Problem

I am using Big Class as the example. Here is the result when I stack four numeric data columns:

 

Capture.PNG

 

Here is the same data plotted as the original separate (un-stacked) columns:

 

Capture.PNG

 

Can you see the parallels between these results and the two of your own posted at the beginning?

miltonwall
Level I

Re: Box Plot Axis Problem

Thanks for the detailed steps. I'll give it a try.

miltonwall
Level I

Re: Box Plot Axis Problem

Thanks for your help. That seems to work well. I'm a bit confused as to why it has changed through time becaues it used to work the other way (I've certainly never used the stack feature). Nonetheless, I'm happy to have a solution.

Thanks,
Brad

chriswilk
Level I

Re: Box Plot Axis Problem

I also have this problem, but with a very large dataset, with >2k columns. It is not practical for me to stack the columns every time I want to create a plot, I would be there for 1 week just to create 1 report.

I work in semiconductor manufacturing and so have huge amounts of data, with many results requiring this type of box plotting

 

Is there another way to autoscale all the box plots to the same scale?

If not, I will have to move away from JMP for my analysis.

FlowData321
Level I

Re: Box Plot Axis Problem

I am also having this problem. Stacking the data is not a solution for my dataset. Where is the option to revert to a common axis for the dataset. I have right clicked everywhere. Looked at all the settings. This is an automatic scaling feature and I am unable to edit the script to get it to stop. I am using JMP 16.1.

Liangyu
Level I

Re: Box Plot Axis Problem

Hi Chris, try to add two "fake" data rows which equal the desired upper and lower limit of the Y axis and then hide them in your final plot. This will force all the data columns to have the same upper and lower limit range and should solve your problem.

Liangyu_0-1720466729837.png