如果您在JMP中有现有图形,请使用红色三角形菜单并重做 - >重新启动 - >确定以查看交互式构建器,或将脚本保存到脚本窗口以获取脚本以重现它。
在Graph Builder中,从头开始,将变量拖动到拖放区域并选择热图样式(如果出现点,则关闭其他样式。)
Graph Builder图形生成器
此脚本构建测试表并运行图形构建器脚本。使用笔和日期的序数使轴的行为符合您的预期。
dt = New Table( "Untitled 2",
Add Rows( 0 ),
New Column( "date", Numeric, "ordinal", Format( "y/m/d", 12 ) ),
New Column( "pen", Numeric, "ordinal", Format( "Best", 12 ) ),
New Column( "location", Character, "Nominal" ),
New Column( "temp", Numeric, "Continuous", Format( "Best", 12 ) )
);
For( t = Today(), t <= Today() + In Days( 10 ), t += In Days( 1 ),
For( p = 1, p <= 20, p += 2,
For( io = 0, io <= 1, io += 1,
dt << addrows( 1 );
dt:date = t;
dt:pen = p;
dt:location = If( io, "inside", "outside" );
dt:temp = p + 10 * io + Random Integer( 0, 9 );
)
)
);
dt << Graph Builder(
Size( 476, 580 ),
Show Control Panel( 0 ),
Variables( X( :date ), Y( :pen ), Group Y( :location ), Color( :temp ) ),
Elements( Heatmap( X, Y, Legend( 42 ) ) )
);
Heat map热图
非常感谢你帮助我。
我很难用笔数:我的数据记录器是在笔外分配的:1,4,6,8,10,11,13,15,17和20。
能告诉我如何在Y轴上只显示这支钢笔吗?
我一直试图在轴设置中这样做,但没有运气..

尝试制作笔(也可能是日期)顺序。
click the icon to change the modeling type单击图标以更改建模类型
删除笔3和5后,我得到了这个轴
3 and 5 are gone3和5都没了
我认为你仍在使用连续建模类型。