我正在嘗試在 JMP 中運行 R 程式碼來建立繪圖。我成功匯入了 png 格式的繪圖,但無法調整繪圖的大小。
我可以使用設定的 size() 調整 png 格式的「plot_from_R」; jsl中的函數,但不成比例且失真。
如何以我想要的大小導入plot_from_R?
R Init();
R Submit(
"\[
windows(300,100) #it doesn't work
plot(function(x) dnorm(x), -5, 5, main = "Normal(0,1) Density")
]\"
);
plot_from_R = R Get Graphics("png");
plot_from_R << set size({600, 200}); //it works but the plot is distorted (out of proportion)
New Window("plot_from_R", plot_from_R);
R Term();