<?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 Href not accessible in EG 7.1 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-Univariate-Href-not-accessible-in-EG-7-1/m-p/282717#M10009</link>
    <description>i tried to create histogram using proc univariate and planned to add LSL /USL using href option.I wrote the following code:&lt;BR /&gt;&lt;BR /&gt;title "Histogram";&lt;BR /&gt;proc univariate data=limits ;&lt;BR /&gt;var test_value;&lt;BR /&gt;histogram test_value/endpoints=(0 to 10 by 1)&lt;BR /&gt;VSCALE=count frontref BARLABEL=COUNT&lt;BR /&gt;grid&lt;BR /&gt;normal kernel;&lt;BR /&gt;ods select all;&lt;BR /&gt;ods graphics on/ width=1300PX HEIGHT=650PX border=off;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;but when i tried to include href in the code as guided in sas documents, it was not available whereas vref option was available.Also options for modifying href like chref and hreflabel was available.Please help me for this or guide me any alternative to it within proc univariate.</description>
    <pubDate>Thu, 07 Jul 2016 15:44:50 GMT</pubDate>
    <dc:creator>gauravp1993</dc:creator>
    <dc:date>2016-07-07T15:44:50Z</dc:date>
    <item>
      <title>PROC Univariate Href not accessible in EG 7.1</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-Univariate-Href-not-accessible-in-EG-7-1/m-p/282717#M10009</link>
      <description>i tried to create histogram using proc univariate and planned to add LSL /USL using href option.I wrote the following code:&lt;BR /&gt;&lt;BR /&gt;title "Histogram";&lt;BR /&gt;proc univariate data=limits ;&lt;BR /&gt;var test_value;&lt;BR /&gt;histogram test_value/endpoints=(0 to 10 by 1)&lt;BR /&gt;VSCALE=count frontref BARLABEL=COUNT&lt;BR /&gt;grid&lt;BR /&gt;normal kernel;&lt;BR /&gt;ods select all;&lt;BR /&gt;ods graphics on/ width=1300PX HEIGHT=650PX border=off;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;but when i tried to include href in the code as guided in sas documents, it was not available whereas vref option was available.Also options for modifying href like chref and hreflabel was available.Please help me for this or guide me any alternative to it within proc univariate.</description>
      <pubDate>Thu, 07 Jul 2016 15:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-Univariate-Href-not-accessible-in-EG-7-1/m-p/282717#M10009</guid>
      <dc:creator>gauravp1993</dc:creator>
      <dc:date>2016-07-07T15:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Univariate Href not accessible in EG 7.1</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-Univariate-Href-not-accessible-in-EG-7-1/m-p/282725#M10011</link>
      <description>&lt;P&gt;Perhaps you&amp;nbsp;specified the syntax incorrectly. The HREF= option is avilable in ODS graphics, as shown in the following example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / border=off;
title "Histogram";
proc univariate data=sashelp.cars ;
var mpg_city;
histogram mpg_city/endpoints=(0 to 65 by 5)
   VSCALE=count frontref BARLABEL=COUNT
   grid href=17 33 hreflabels="LSL" "USL"
   odstitle=title
   normal kernel;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the other options, you need to understand the difference between Tradiational Graphics and ODS Graphics.&lt;/P&gt;
&lt;P&gt;When you use ODS statistical graphics (ODS GRAPHICS ON), you cannot use the options that are specified in the portion of the documentation that says&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/68142/HTML/default/viewer.htm#procstat_univariate_syntax09.htm" target="_self"&gt; "Options for Traditional Graphics Output". &lt;/A&gt;You can use the other options, which includes HREF= and ODSTITLE=.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You cannot use the CHREF= for ODS graphics. ODS graphics uses "styles" to set the attributes of lines, bars, fonts, etc.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 16:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-Univariate-Href-not-accessible-in-EG-7-1/m-p/282725#M10011</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-07-07T16:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Univariate Href not accessible in EG 7.1</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-Univariate-Href-not-accessible-in-EG-7-1/m-p/282865#M10013</link>
      <description>&lt;P&gt;Thank you!!! It is working fine now. But another query came up.&lt;/P&gt;&lt;P&gt;- Since sometime my lsl/usl values goes far beyond histogram and normal curve area,they are not shown in graph screen.how can we increase range of xaxis to cover those href values.&lt;/P&gt;&lt;P&gt;- For previous code,i was getting data in each range in xaxis which helped to understand size of bins and next bin values of histogram.But now i can see skipped values.Could you help me in these matters too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3962iF258DF034825BB06/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="2016-07-08 07_42_31-Project - SAS Enterprise Guide.png" title="2016-07-08 07_42_31-Project - SAS Enterprise Guide.png" /&gt; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 05:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-Univariate-Href-not-accessible-in-EG-7-1/m-p/282865#M10013</guid>
      <dc:creator>gauravp1993</dc:creator>
      <dc:date>2016-07-08T05:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Univariate Href not accessible in EG 7.1</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-Univariate-Href-not-accessible-in-EG-7-1/m-p/282926#M10015</link>
      <description>&lt;P&gt;1. Expand the range of the ENDPOINTS= option so &lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;that &lt;/FONT&gt;it includes the LSL and USL. For example:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;href&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;57&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;73 &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;endpoints=(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt; to &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;75&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt; by &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can read about how to control bin locations in histograms by reading the article &lt;A href="http://blogs.sas.com/content/iml/2014/08/25/bins-for-histograms.html" target="_self"&gt;"Choosing bins for histograms."&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;2. SAS provides ODS graphics as a built-in feature of analytical procedures. The options that are surfaced through the procedure syntax are intended to cover about 95% of the typical use cases. For customized graphics, SAS also provided the SGPLOT procedure which enables you to exercise more control over the placement, layout, and attributes of graphical elements such as lines, fonts, and tick marks. If you want to customize a histogram down to the colors of lines and the location of tick marks, I suggest you look into the &lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/67909/HTML/default/viewer.htm#n17xrpcduau1f8n1c1nhe477pv18.htm" target="_self"&gt;HISTOGRAM statement for the SGPLOT procedure&lt;/A&gt;, as well as other statements that I highlight below:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.cars;
   histogram mpg_city / binwidth=10 binstart=5
      SCALE=count DATALABEL=COUNT;
   density mpg_city / type=normal;
   density mpg_city / type=kernel;
   refline 57 73 / axis=X label=("LSL" "USL") lineattrs=(color=green);
   xaxis values=(0 to 80 by 10);       
   yaxis grid;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 12:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-Univariate-Href-not-accessible-in-EG-7-1/m-p/282926#M10015</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-07-08T12:19:24Z</dc:date>
    </item>
  </channel>
</rss>

