cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

How to adjust the size of R plot imported with get R graphics(); ?

I'm trying to run R code in JMP to create a plot. I succeeded in importing the plot in png format, but failed to adjust the size of the plot.

I can adjust the "plot_from_R" in png format with the set size(); function in jsl, but it is not proportional and distorted.

How can I import plot_from_R in the size I want?

 

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

0 REPLIES 0

Recommended Articles