turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Auto-generated stacked histogram

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Sep 21, 2017 4:52 AM
(293 views)

Hi

I am looking for a function to generate a histogram with color information on data groups like this:

However, in this case I needed to bin the data myself. Also the bars don't touch like normally in histograms.

I know the function in graph builder generating the type of histogram shown below, but here the istograms are not stacked but superimposed on each other, and almost impossible to read for many groups for many groups:

I know that selectiung data in the Distribution platform also shows the selected data in the histogram. But here I can only show one group (color) at the time.

Is ther no built-in function in JMP for this?

I hope someone can help. I attached the data with scripts.

BR

Jesper

Jesper

2 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Sep 21, 2017 6:46 AM
(279 views)

I am not aware of a method to get your results exactly the way you want, the below script is what I have used for years to get close to those results in an automated fashion. I set it up to run on your attached data table, but it could be easily generalized.

```
Names Default To Here( 1 );
dt = Current Data Table();
dis = dt << Distribution(
invisible,
Continuous Distribution(
Column( :x ),
Outlier Box Plot( 0 ),
Normal Quantile Plot( 1 ),
Customize Summary Statistics(
Skewness( 1 ),
Kurtosis( 1 ),
Median( 1 ),
Median Absolute Deviation( 1 ),
Robust Mean( 1 ),
Robust Std Dev( 1 )
)
),
Nominal Distribution( Column( :Group ) )
);
// Save the bins
dis << save( Level Midpoints );
// Change the X axis modeling type so the bins are equal distance groupings
dt:Midpoint x << modeling type( ordinal );
// I use the Chart Platform for this because I developed the method long
// before the Graph Builder was available
Chart( X( :Midpoint x, :Group ), Y( N( :x ) ), Stack Bars( 1 ), Bar Chart( 1 ) );
```

Jim

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Sep 21, 2017 11:09 PM
(260 views)

Than you Jim

I was not aware of the option to save midpoints from distribution. That of course is a neat way to bin the data.

I guess you answer is that the feature does not exist as a built-in function.

To JMP: Consider this a feature request then :)

BR

Jesper

Jesper