自動產生堆疊直方圖你好
我正在尋找一個函數來產生帶有資料組顏色資訊的直方圖,如下所示:

然而,在這種情況下,我需要自己對資料進行分類。 此外,長條圖不會像直方圖中通常那樣接觸。
我知道圖形生成器中的函數生成如下所示的直方圖類型,但這裡的直方圖不是堆疊的而是相互疊加的,並且對於許多組來說幾乎不可能讀取:

我知道分佈平台中的選擇資料也會在直方圖中顯示所選資料。 但在這裡我一次只能顯示一組(顏色)。
JMP 中沒有內建函數嗎?
我希望有人能幫忙。 我用腳本附加了數據。
回覆:自動產生的堆疊直方圖比你吉姆
我不知道可以選擇從分佈中保存中點。 這當然是整理數據的巧妙方法。
我猜你的答案是該功能不作為內建函數存在。
對於 JMP:請將此視為功能請求:)
回覆:自動產生的堆疊直方圖我不知道有什麼方法可以完全按照您想要的方式獲得結果,以下的腳本是我多年來使用的以自動化方式接近這些結果的腳本。 我將其設定為在您附加的數據表上運行,但它可以輕鬆推廣。

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 ) );