<?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 PROC UNIVARIATE annotated  not visible in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-annotated-not-visible/m-p/900271#M355802</link>
    <description>&lt;P&gt;Dear SAS users,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have written a simple program for preparing a HTML webplot normal probability.&lt;/P&gt;
&lt;P&gt;Here is the SAS code:&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%macro plot;

data pplot;
%do k=1 %to 10;
   y = ranuni(5);output;
%end;
run;

/*annotate to add a red circle in the probability plot*/
option mprint;
data anno1;
    x=0.6; y=50; text='circle'; size=3; position='3'; 
	color ='red'; style='arial'; xsys= '2'; ysys= '2'; function='symbol'; when = 'a'; output;
run;

/*Make a probability plot*/
goption reset = all device = jpg;

ods graphics on / width=5in;
ods graphics on / height=5in;
ods noproctitle;
filename odsout 'c:\temp'; 
ods html body="plot.html" path=odsout gpath=odsout;



ods graphics on;
proc univariate data=pplot noprint;
   probplot y / normal (mu=0.6481 sigma=0.2725) annotate=anno1
                      rotate;                     
		     label y = 'Y random';				 
run;

ods listing;
ods html close;

%mend plot;
%plot;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;The problem is that the red circle is not visible in the annotate function, the webplot only shows a a normal probability plot:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Probability Plot.png" style="width: 529px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89130iFF2655532E85275F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Probability Plot.png" alt="Probability Plot.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Could you please find a solution how to make annote workable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cornelis&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2023 07:30:47 GMT</pubDate>
    <dc:creator>Cornelis</dc:creator>
    <dc:date>2023-10-27T07:30:47Z</dc:date>
    <item>
      <title>PROC UNIVARIATE annotated  not visible</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-annotated-not-visible/m-p/900271#M355802</link>
      <description>&lt;P&gt;Dear SAS users,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have written a simple program for preparing a HTML webplot normal probability.&lt;/P&gt;
&lt;P&gt;Here is the SAS code:&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%macro plot;

data pplot;
%do k=1 %to 10;
   y = ranuni(5);output;
%end;
run;

/*annotate to add a red circle in the probability plot*/
option mprint;
data anno1;
    x=0.6; y=50; text='circle'; size=3; position='3'; 
	color ='red'; style='arial'; xsys= '2'; ysys= '2'; function='symbol'; when = 'a'; output;
run;

/*Make a probability plot*/
goption reset = all device = jpg;

ods graphics on / width=5in;
ods graphics on / height=5in;
ods noproctitle;
filename odsout 'c:\temp'; 
ods html body="plot.html" path=odsout gpath=odsout;



ods graphics on;
proc univariate data=pplot noprint;
   probplot y / normal (mu=0.6481 sigma=0.2725) annotate=anno1
                      rotate;                     
		     label y = 'Y random';				 
run;

ods listing;
ods html close;

%mend plot;
%plot;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;The problem is that the red circle is not visible in the annotate function, the webplot only shows a a normal probability plot:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Probability Plot.png" style="width: 529px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89130iFF2655532E85275F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Probability Plot.png" alt="Probability Plot.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Could you please find a solution how to make annote workable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cornelis&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 07:30:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-annotated-not-visible/m-p/900271#M355802</guid>
      <dc:creator>Cornelis</dc:creator>
      <dc:date>2023-10-27T07:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC UNIVARIATE annotated  not visible</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-annotated-not-visible/m-p/900344#M355829</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/39747"&gt;@Cornelis&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ANNOTATE= option of the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_univariate_syntax26.htm" target="_blank" rel="noopener"&gt;PROBPLOT statement&lt;/A&gt; applies to "traditional graphics output" from SAS/GRAPH only (as does the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/graphref/p0vu32btexjo29n1jqrva2glsyns.htm" target="_blank" rel="noopener"&gt;GOPTIONS statement&lt;/A&gt;). By your ODS GRAPHICS ON statement, however, you &lt;A href="https://communities.sas.com/t5/Graphics-Programming/Change-in-behavior-of-SAS-Graph-using-ODS-HTML/m-p/347858/highlight/true#M12061" target="_blank" rel="noopener"&gt;decide against&lt;/A&gt; traditional graphics output (and use ODS graphics instead). So, if you want the annotation to work, you must switch ODS graphics off:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and, of course, omit the ODS GRAPHICS ON statements. Your width and height specifications then go into the GOPTIONS statement:&lt;/P&gt;
&lt;PRE&gt;goptions reset = all device = jp&lt;STRONG&gt;e&lt;/STRONG&gt;g &lt;STRONG&gt;vsize=5in hsize=5in&lt;/STRONG&gt;;&lt;/PRE&gt;
&lt;P&gt;Note that the DEVICE name is JPEG, not JPG (at least in my Windows SAS 9.4M5 installation; run&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gdevice catalog=sashelp.devices;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to check). It uses a rather low resolution of 96 dpi. You can get 300 dpi with &lt;FONT face="courier new,courier"&gt;device = jpeg&lt;STRONG&gt;300&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, the legend ("Normal Line ...") is not created with&amp;nbsp;traditional graphics. You may want to add an &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_univariate_syntax15.htm" target="_blank" rel="noopener"&gt;INSET statement&lt;/A&gt; to your PROC UNIVARIATE step to get something similar.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;inset normal / pos=SE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 17:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-annotated-not-visible/m-p/900344#M355829</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-10-27T17:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC UNIVARIATE annotated  not visible</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-annotated-not-visible/m-p/900425#M355852</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your support. You are completely right, the&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;ods graphics off;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;is the bottleneck. Using ODS graphics delivers more possibility to create nice graphs and annotate facilities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best rergards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cornelis&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2023 11:48:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-UNIVARIATE-annotated-not-visible/m-p/900425#M355852</guid>
      <dc:creator>Cornelis</dc:creator>
      <dc:date>2023-10-28T11:48:16Z</dc:date>
    </item>
  </channel>
</rss>

