<?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 sas viya sgplot output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-viya-sgplot-output/m-p/820245#M323734</link>
    <description>&lt;P&gt;When I use the sgplot procedure in sas viya and get a lot of graphs generated due to a "by" statement for example, the output will open in a new browser tab.&lt;/P&gt;
&lt;P&gt;That's convenient because I can save as a html page by right-click. This preserves mouseover feature and so on.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I have few graphs output, they are displayed within the sas studio window and the option to save as html vanishes. I can only save each individual plot but it's not tip-able anymore.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I force ods to output &lt;U&gt;always&lt;/U&gt; in a new brower tab?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attach the code of sgplot without data. I suppose a response here does not require a working example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods graphics on / width=20cm;
proc sgplot data=CASUSER.want1 ;
/* by _CLUSTER_ID_; */
format diff_venta _o_opcionales_valor euro9.0;
by  cluster_description;
band y=diff_venta lower=-5000 upper= 0 / fillattrs=(color = lightgrey transparency=0.9);
ellipse y=diff_venta x=_o_opcionales_valor /  fill fillattrs=(transparency=0.8 color=liy);
reg y=diff_venta x=_o_opcionales_valor /  nomarkers lineattrs=(color=lightred); 
/* reg y=diff_venta x=_o_opcionales_valor / degree=2 nomarkers lineattrs=(color=orange) transparency=0.5;  */
text y=diff_venta x=diff_venta text=txt / textattrs=(size=12 color=firebrick) ;
scatter y=diff_venta x=_o_opcionales_valor / group=model dataskin=sheen markerattrs=(symbol=plus size=7) 
tip=(_o_opcionales_valor valor_venta_reparado _o_pff _o_actual_mileage meses_efectivos ) ;

/*    inset "Intercept = &amp;amp;Int" "Slope = &amp;amp;Slope" /  */
/*          border title="Parameter Estimates" position=topleft; */
xaxis grid;
yaxis grid;
/* xaxis values=(-5000 to 10000 by 5000); */
lineparm x=0 y=0 slope=1 / lineattrs=(color=lib pattern=4 thickness=2);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic2.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72716i842F9DC3D59BB298/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic2.png" alt="pic2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72717iF3396A905E2A194A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.png" alt="pic1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2022 13:58:54 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2022-06-24T13:58:54Z</dc:date>
    <item>
      <title>sas viya sgplot output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-viya-sgplot-output/m-p/820245#M323734</link>
      <description>&lt;P&gt;When I use the sgplot procedure in sas viya and get a lot of graphs generated due to a "by" statement for example, the output will open in a new browser tab.&lt;/P&gt;
&lt;P&gt;That's convenient because I can save as a html page by right-click. This preserves mouseover feature and so on.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I have few graphs output, they are displayed within the sas studio window and the option to save as html vanishes. I can only save each individual plot but it's not tip-able anymore.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I force ods to output &lt;U&gt;always&lt;/U&gt; in a new brower tab?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attach the code of sgplot without data. I suppose a response here does not require a working example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods graphics on / width=20cm;
proc sgplot data=CASUSER.want1 ;
/* by _CLUSTER_ID_; */
format diff_venta _o_opcionales_valor euro9.0;
by  cluster_description;
band y=diff_venta lower=-5000 upper= 0 / fillattrs=(color = lightgrey transparency=0.9);
ellipse y=diff_venta x=_o_opcionales_valor /  fill fillattrs=(transparency=0.8 color=liy);
reg y=diff_venta x=_o_opcionales_valor /  nomarkers lineattrs=(color=lightred); 
/* reg y=diff_venta x=_o_opcionales_valor / degree=2 nomarkers lineattrs=(color=orange) transparency=0.5;  */
text y=diff_venta x=diff_venta text=txt / textattrs=(size=12 color=firebrick) ;
scatter y=diff_venta x=_o_opcionales_valor / group=model dataskin=sheen markerattrs=(symbol=plus size=7) 
tip=(_o_opcionales_valor valor_venta_reparado _o_pff _o_actual_mileage meses_efectivos ) ;

/*    inset "Intercept = &amp;amp;Int" "Slope = &amp;amp;Slope" /  */
/*          border title="Parameter Estimates" position=topleft; */
xaxis grid;
yaxis grid;
/* xaxis values=(-5000 to 10000 by 5000); */
lineparm x=0 y=0 slope=1 / lineattrs=(color=lib pattern=4 thickness=2);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic2.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72716i842F9DC3D59BB298/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic2.png" alt="pic2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72717iF3396A905E2A194A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.png" alt="pic1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 13:58:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-viya-sgplot-output/m-p/820245#M323734</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2022-06-24T13:58:54Z</dc:date>
    </item>
  </channel>
</rss>

