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.
%3CLINGO-SUB%20id%3D%22lingo-sub-827480%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%C2%BFC%C3%B3mo%20ajustar%20el%20tama%C3%B1o%20del%20gr%C3%A1fico%20R%20importado%20con%20get%20R%20graphics()%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-827480%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EEstoy%20intentando%20ejecutar%20c%C3%B3digo%20R%20en%20JMP%20para%20crear%20un%20gr%C3%A1fico.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3ELogr%C3%A9%20importar%20el%20gr%C3%A1fico%20en%20formato%20png%2C%20pero%20no%20pude%20ajustar%20el%20tama%C3%B1o%20del%20gr%C3%A1fico.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EPuedo%20ajustar%20el%20%22plot_from_R%22%20en%20formato%20png%20con%20el%20tama%C3%B1o%20establecido()%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3Efunci%C3%B3n%20en%20jsl%2C%20pero%20no%20es%20proporcional%20y%20est%C3%A1%20distorsionada.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%C2%BFC%C3%B3mo%20puedo%20importar%20plot_from_R%20en%20el%20tama%C3%B1o%20que%20quiero%3F%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ER%20Init()%3B%0AR%20Submit(%0A%09%22%5C%5B%0Awindows(300%2C100)%20%23it%20doesn't%20work%0Aplot(function(x)%20dnorm(x)%2C%20-5%2C%205%2C%20main%20%3D%20%22Normal(0%2C1)%20Density%22)%0A%5D%5C%22%0A)%3B%0Aplot_from_R%20%3D%20R%20Get%20Graphics(%22png%22)%3B%0Aplot_from_R%20%26lt%3B%26lt%3B%20set%20size(%7B600%2C%20200%7D)%3B%20%2F%2Fit%20works%20but%20the%20plot%20is%20distorted%20(out%20of%20proportion)%0ANew%20Window(%22plot_from_R%22%2C%20plot_from_R)%3B%0AR%20Term()%3B%0A%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-827480%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3EAutomatizaci%C3%B3n%20y%20scripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAn%C3%A1lisis%20y%20modelado%20de%20datos%20b%C3%A1sicos%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAcceso%20a%20datos%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECombinaci%C3%B3n%20y%20limpieza%20de%20datos%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExploraci%C3%B3n%20y%20visualizaci%C3%B3n%20de%20datos%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
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