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%3EWie%20passt%20man%20die%20Gr%C3%B6%C3%9Fe%20eines%20mit%20get%20R%20graphics()%3B%20importierten%20R-Plots%20an%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%3EIch%20versuche%2C%20R-Code%20in%20JMP%20auszuf%C3%BChren%2C%20um%20ein%20Diagramm%20zu%20erstellen.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EEs%20ist%20mir%20gelungen%2C%20das%20Diagramm%20im%20PNG-Format%20zu%20importieren%2C%20aber%20ich%20konnte%20die%20Gr%C3%B6%C3%9Fe%20des%20Diagramms%20nicht%20anpassen.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EIch%20kann%20das%20%E2%80%9Eplot_from_R%E2%80%9C%20im%20PNG-Format%20mit%20der%20Funktion%20%E2%80%9Eset%20size()%3B%E2%80%9C%20anpassen.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EFunktion%20in%20JSL%2C%20aber%20sie%20ist%20nicht%20proportional%20und%20verzerrt.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EWie%20kann%20ich%20plot_from_R%20in%20der%20gew%C3%BCnschten%20Gr%C3%B6%C3%9Fe%20importieren%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%3EAutomatisierung%20und%20Skripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGrundlegende%20Datenanalyse%20und%20Modellierung%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDatenzugriff%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDatenzusammenf%C3%BChrung%20und%20-bereinigung%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDatenexploration%20und%20-visualisierung%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