我尝试从 Minitab 复制您的图表。我认为 JMP 中没有设置图表可以用日期值标记索引变量,但是,JMP 中有一些方法可以允许更改列的显示值。我首先做的是创建一个名为 Index 的新列,它只是从数据表顶部到底部的序列号。

然后我将值标签列属性添加到该列中,

这将显示的数据更改为

然后,我使用两个不同的 JMP 平台以交互方式创建图表:图形生成器和运行图


以下是 JMP 根据我采取的交互式步骤创建的脚本。在脚本中,您可以看到我选择用于生成输出显示的不同设置。
第一次查看该脚本时,它看起来非常大,但是该脚本首先创建示例数据表,然后是图形生成器和运行图 JSL。
names default to here(1);
dt =
New Table( "Example",
Add Rows( 30 ),
New Column( "Values",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values(
[31.44206, 31.60417, 29.80781, 30.41956, 31.16545, 30.84149, 30.93325,
30.96718, 30.64789, 30.9339, 30.86228, 30.70391, 30.74697, 30.87636,
30.50128, 31.53337, 31.45764, 30.65879, 31.00759, 30.61617, 30.90196,
31.18419, 30.5932, 30.66666, 30.91367, 30.19596, 30.94168, 31.41659,
31.10544, 31.48151]
)
),
New Column( "Date",
Numeric,
"Continuous",
Format( "d/m/y", 12 ),
Input Format( "d/m/y" ),
Set Values(
[3788553600, 3788553600, 3788553600, 3788553600, 3788553600, 3788553600,
3788553600, 3788553600, 3788553600, 3788553600, 3788553600, 3788726400,
3788726400, 3788726400, 3788726400, 3788726400, 3788726400, 3788726400,
3789244800, 3789244800, 3789244800, 3789244800, 3789244800, 3789244800,
3789244800, 3789244800, 3789244800, 3789244800, 3789244800, 3789244800]
)
),
New Column( "index",
Numeric,
"Continuous",
Format( "Best", 12 ),
Value Labels(
{0 <= "20.01.2024" < 11.5, 12 <= "22.01.2024" < 18.5, 19 <= "28.01.2024"
< 30.5}
),
Use Value Labels( 1 ),
Set Selected,
Set Values(
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30]
)
),
Set Row States(
[13760, 13760, 13760, 13760, 13760, 13760, 13760, 13760, 13760, 13760, 13760,
13248, 13248, 13248, 13248, 13248, 13248, 13248, 13504, 13504, 13504, 13504,
13504, 13504, 13504, 13504, 13504, 13504, 13504, 13504]
)
);
Graph Builder(
Size( 534, 453 ),
Show Control Panel( 0 ),
Variables( X( :index ), Y( :Values ), Overlay( :Date ) ),
Elements(
Points( X, Y, Legend( 20 ) ),
Line( X, Y, Legend( 21 ), Row order( 1 ) )
),
SendToReport(
Dispatch(
{},
"Values",
ScaleBox,
{Min( 29.6 ), Max( 32 ), Inc( 0.4 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
20,
Base( 0, 0, 0, Item ID( "20/01/2024", 1 ) ),
Base( 1, 0, 0, Item ID( "22/01/2024", 1 ) ),
Base( 2, 0, 0, Item ID( "28/01/2024", 1 ) ),
Properties( 0, {Marker Size( 6 )}, Item ID( "20/01/2024", 1 ) ),
Properties( 1, {Marker Size( 6 )}, Item ID( "22/01/2024", 1 ) ),
Properties( 2, {Marker Size( 6 )}, Item ID( "28/01/2024", 1 ) )
)}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "Time Series Plot of Values" )}
),
Dispatch( {}, "X title", TextEditBox, {Set Text( "Date" )} ),
Dispatch(
{},
"400",
LegendBox,
{Legend Position( {20, [0, 1, 2], 21, [-1, -1, -1]} )}
)
)
);
Control Chart Builder(
Show Two Shewhart Charts( 0 ),
Show Limit Summaries( 0 ),
Variables( Subgroup( :index ), Y( :Values ), Phase( :Date ) ),
Chart(
Points( Statistic( "Individual" ) ),
Limits(
Sigma( "Moving Range" ),
Show Center Line( 0 ),
Show Lower Limit( 0 ),
Show Upper Limit( 0 )
)
),
Show Control Panel( 0 ),
SendToReport(
Dispatch( {}, "index", ScaleBox, {Label Row( 1, Show Major Labels( 0 ) )} ),
Dispatch(
{},
"Values",
ScaleBox,
{Min( 29.75 ), Max( 31.649079 ), Inc( 0.4 ), Minor Ticks( 0 )}
),
Dispatch(
{},
"graph display 1 title",
TextEditBox,
{Set Text( "Time Series Plot of Values" )}
),
Dispatch(
{},
"Subgroup display 1 title",
TextEditBox,
{Set Text( "Date" )}
)
)
);