<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to adjust the size of R plot imported with get R graphics(); ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-adjust-the-size-of-R-plot-imported-with-get-R-graphics/m-p/827480#M100916</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I'm trying to run R code in JMP to create a plot.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; I succeeded in importing the plot in png format, but failed to adjust the size of the plot.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I can adjust the "plot_from_R" in png format with the set size();&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;function in jsl, but it is not proportional and distorted.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;How can I import plot_from_R in the size I want?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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 &amp;lt;&amp;lt; set size({600, 200}); //it works but the plot is distorted (out of proportion)
New Window("plot_from_R", plot_from_R);
R Term();

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Jan 2025 05:31:23 GMT</pubDate>
    <dc:creator>CountableModel1</dc:creator>
    <dc:date>2025-01-16T05:31:23Z</dc:date>
    <item>
      <title>How to adjust the size of R plot imported with get R graphics(); ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-adjust-the-size-of-R-plot-imported-with-get-R-graphics/m-p/827480#M100916</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I'm trying to run R code in JMP to create a plot.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; I succeeded in importing the plot in png format, but failed to adjust the size of the plot.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I can adjust the "plot_from_R" in png format with the set size();&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;function in jsl, but it is not proportional and distorted.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;How can I import plot_from_R in the size I want?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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 &amp;lt;&amp;lt; set size({600, 200}); //it works but the plot is distorted (out of proportion)
New Window("plot_from_R", plot_from_R);
R Term();

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jan 2025 05:31:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-adjust-the-size-of-R-plot-imported-with-get-R-graphics/m-p/827480#M100916</guid>
      <dc:creator>CountableModel1</dc:creator>
      <dc:date>2025-01-16T05:31:23Z</dc:date>
    </item>
  </channel>
</rss>

