<?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 Re: Rotate label orientation of a reference line in SGPLOT procedure in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557704#M10023</link>
    <description>&lt;P&gt;Sorry, I can´t .Unfortunately, the data are confusing.&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 07:23:47 GMT</pubDate>
    <dc:creator>aquaman20</dc:creator>
    <dc:date>2019-05-10T07:23:47Z</dc:date>
    <item>
      <title>Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557686#M10012</link>
      <description>&lt;P&gt;Hi SAS users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately my label references from my refline in PROC sgplot are vertical and I would like to rotate them 45 degrees to the right. Is there a solution or a command for this?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 06:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557686#M10012</guid>
      <dc:creator>aquaman20</dc:creator>
      <dc:date>2019-05-10T06:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557688#M10014</link>
      <description>&lt;P&gt;Can you show us your code please? What version of SAS do you use?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 06:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557688#M10014</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-10T06:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557690#M10015</link>
      <description>&lt;P&gt;Here is the Code and I use SAS 9.4:&lt;/P&gt;&lt;P&gt;proc sgplot data=test2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;histogram T1 / scale=percent binwidth=0.25 fillattrs=(color='#C5AE45' ) legendlabel= "Vehicle group (VG)";&lt;BR /&gt;histogram T2 / scale=percent binwidth=0.25 fillattrs=(color='#216771' ) legendlabel = "Dose group (DG)" ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;refline 0.309 / axis = x LINEATTRS= (color='#C5AE45' PATTERN=dash thickness=2)label="Geom. mean";&lt;BR /&gt;refline 0.575/ axis = x LINEATTRS= (color='#C5AE45' PATTERN=shortdashdot thickness=2)label="Median";&lt;BR /&gt;refline 1.592 / axis = x LINEATTRS= (color='#C5AE45' PATTERN=solid thickness=2)label="Arithm. mean;&lt;/P&gt;&lt;P&gt;refline 15.653 / axis = x LINEATTRS= (color='#216771' PATTERN=dash thickness=2)label="Geom. mean" transparency=0.5;&lt;BR /&gt;refline 13.599 / axis = x LINEATTRS= (color='#216771' PATTERN=shortdashdot thickness=2)label="Median" transparency=0.5 ;&lt;BR /&gt;refline 18.879 / axis = x LINEATTRS= (color='#216771' PATTERN=solid thickness=2)label="Arithm. mean" transparency=0.5 ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 06:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557690#M10015</guid>
      <dc:creator>aquaman20</dc:creator>
      <dc:date>2019-05-10T06:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557692#M10016</link>
      <description>&lt;P&gt;you may try the below option in xaxis statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;xaxis ValuesRotate=Diagonal;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 May 2019 06:46:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557692#M10016</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-05-10T06:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557695#M10017</link>
      <description>&lt;P&gt;Sorry doesn´t work. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 06:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557695#M10017</guid>
      <dc:creator>aquaman20</dc:creator>
      <dc:date>2019-05-10T06:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557697#M10018</link>
      <description>&lt;P&gt;I'm not sure, but I don't think its possible to rotate 45 degrees. The only simple, non GTL workaround I can think of is to create another refline in the same position as the on already there with a transparent label like below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
   scatter x=height y=weight;
   refline 62 / axis=x LINEATTRS= (color='#C5AE45' PATTERN=dash thickness=2) label="Geom. mean";
   refline 62 / axis=x LINEATTRS= (color='#C5AE45' PATTERN=dash thickness=2) label="xxxxxxxxxx" labelattrs=(color="white");
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will rotate your refline label by 90 degrees. Let me know if it works for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 07:11:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557697#M10018</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-10T07:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557698#M10019</link>
      <description>&lt;P&gt;Sorry, also does´t work really well, because now the label overlay each other and you can´t read anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 07:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557698#M10019</guid>
      <dc:creator>aquaman20</dc:creator>
      <dc:date>2019-05-10T07:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557699#M10020</link>
      <description>&lt;P&gt;What do you mean by overlay each other? can you post an image?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 07:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557699#M10020</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-10T07:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557701#M10021</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot2 (2).png" style="width: 184px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29400i226CAC9E8181AED4/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot2 (2).png" alt="SGPlot2 (2).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 07:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557701#M10021</guid>
      <dc:creator>aquaman20</dc:creator>
      <dc:date>2019-05-10T07:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557702#M10022</link>
      <description>&lt;P&gt;Can you post an image of your entire plot please?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 07:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557702#M10022</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-10T07:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557704#M10023</link>
      <description>&lt;P&gt;Sorry, I can´t .Unfortunately, the data are confusing.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 07:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557704#M10023</guid>
      <dc:creator>aquaman20</dc:creator>
      <dc:date>2019-05-10T07:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557710#M10024</link>
      <description>&lt;P&gt;Ok. I can't see your data, so I can't help you on that one. My best advice is to use the mentioned workaround and place the 'fake' refline statements before any of the 'real' ones. Remember to specify the same color for the refline labels as the background. That way, the 'real' refline labels will overwrite the 'fake' ones and that shouldn't be a problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you find a suitable solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Otherwise, don't hesitate to ask again.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 08:01:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557710#M10024</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-10T08:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate label orientation of a reference line in SGPLOT procedure</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557791#M10033</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124285"&gt;@aquaman20&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Here is the Code and I use SAS 9.4:&lt;/P&gt;
&lt;P&gt;proc sgplot data=test2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;histogram T1 / scale=percent binwidth=0.25 fillattrs=(color='#C5AE45' ) legendlabel= "Vehicle group (VG)";&lt;BR /&gt;histogram T2 / scale=percent binwidth=0.25 fillattrs=(color='#216771' ) legendlabel = "Dose group (DG)" ;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;refline 0.309 / axis = x LINEATTRS= (color='#C5AE45' PATTERN=dash thickness=2)label="Geom. mean";&lt;BR /&gt;refline 0.575/ axis = x LINEATTRS= (color='#C5AE45' PATTERN=shortdashdot thickness=2)label="Median";&lt;BR /&gt;refline 1.592 / axis = x LINEATTRS= (color='#C5AE45' PATTERN=solid thickness=2)label="Arithm. mean;&lt;/P&gt;
&lt;P&gt;refline 15.653 / axis = x LINEATTRS= (color='#216771' PATTERN=dash thickness=2)label="Geom. mean" transparency=0.5;&lt;BR /&gt;refline 13.599 / axis = x LINEATTRS= (color='#216771' PATTERN=shortdashdot thickness=2)label="Median" transparency=0.5 ;&lt;BR /&gt;refline 18.879 / axis = x LINEATTRS= (color='#216771' PATTERN=solid thickness=2)label="Arithm. mean" transparency=0.5 ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Try this. For the offending REFLINE &lt;STRONG&gt;do not&lt;/STRONG&gt; add a label.&lt;/P&gt;
&lt;P&gt;To you data add an observation with a text variable holding the label text, and an x and y coordinate. Plot that variable using a TEXT plot. You can use options such as ROTATE for the text value and TEXTATTRS to control color, font and size.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 14:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Rotate-label-orientation-of-a-reference-line-in-SGPLOT-procedure/m-p/557791#M10033</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-10T14:41:22Z</dc:date>
    </item>
  </channel>
</rss>

