您好,有一些类似的帖子,但我还没有找到我正在寻找的内容。
我制作了两个不同指数的阿尔法多样性图,并希望并排呈现它们(它们的比例不同)
使用两个 Y 轴(例如左右)会令人困惑。
所以我想实际上制作两个单独的图表并并排显示它们。
这是 R 中 phyloseq 包的输出。

我也将数据作为表格,并希望在 JMP 中重新创建绘图。 有任何想法吗?
谢谢,以斯拉
如果您只想“点击”,您可以通过“手动”设置您想要的图形,然后使用“窗口 > 组合窗口...”来接近:

dt = Open( "$sample_data/big class.jmp" );
New Window( "two graphs",
V List Box(
H List Box(
dt << Graph Builder(
Size( 512, 442 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables( X( :age ), Y( :height ) ),
Elements( Points( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch( {}, "Graph Builder", OutlineBox, {Set Title( "" ), Image Export Display( Normal )} ),
Dispatch( {}, "X title", TextEditBox, {Set Text( "" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "" )} ),
Dispatch( {}, "age", ScaleBox, {Label Row( {Major Grid Line Color( 2 ), Show Major Grid( 1 )} )} ),
Dispatch( {}, "height", ScaleBox, {Label Row( {Major Grid Line Color( 2 ), Show Major Grid( 1 )} )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "Height" )} ),
Dispatch( {}, "Graph Builder", FrameBox, {Background Color( 32 )} )
)
);
// identical but for height...weight in three places
dt << Graph Builder(
Size( 512, 442 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables( X( :age ), Y( :weight ) ),
Elements( Points( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch( {}, "Graph Builder", OutlineBox, {Set Title( "" ), Image Export Display( Normal )} ),
Dispatch( {}, "X title", TextEditBox, {Set Text( "" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "" )} ),
Dispatch( {}, "age", ScaleBox, {Label Row( {Major Grid Line Color( 2 ), Show Major Grid( 1 )} )} ),
Dispatch( {}, "weight", ScaleBox, {Label Row( {Major Grid Line Color( 2 ), Show Major Grid( 1 )} )} ),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "Weight" )} ),
Dispatch( {}, "Graph Builder", FrameBox, {Background Color( 32 )} )
)
);
),
H Center Box( Text Box( "two graphs", <<SETFONTSIZE></SETFONTSIZE>
在图形生成器中以交互方式制作图形,然后保存脚本并在其周围创建一个新窗口。