<?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 Adding particular symbols in proc sgplot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-particular-symbols-in-proc-sgplot/m-p/775490#M246511</link>
    <description>&lt;P&gt;Hi, my question is pretty straightfoward. In this particular code I want to show two symbols in the legend. However, I am not sure how to write syntax to show a trianglefilled and starfilled in the legend. The legend is only populating with subjects that i'm plotting but I would like a legend that shows a star and a triangle so I can indicate one is for the first series and the other one is for the second series since it's all on the same graph. This is my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=adef_bleed_part noautolegend dattrmap=MyAttrMap;&lt;BR /&gt;styleattrs datasymbols=(trianglefilled starfilled);&lt;/P&gt;&lt;P&gt;series x=astdy y=bleed_ep/&lt;BR /&gt;group=subjid markers markerattrs=( size=5 symbol=trianglefilled )&lt;BR /&gt;lineattrs=(pattern=5 thickness=.5) NOMISSINGGROUP name="series" attrid=myreg;&lt;/P&gt;&lt;P&gt;series x=stdy y=aval/&lt;BR /&gt;group=subjid markers markerattrs=( size=5 symbol=starfilled)&lt;BR /&gt;lineattrs=( pattern=1 thickness=2) NOMISSINGGROUP y2axis name="series2" attrid=myreg;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xaxis values=(0 to 2200 by 168) label="Study Day" minor;&lt;BR /&gt;yaxis values=(0 to 30 by 2) label="Cumulative Number of Bleeding Episodes" labelattrs=(size=7);&lt;BR /&gt;y2axis values=(0 to 200000 by 10000) label="Cumulative FIX Consumption (IU)" labelattrs=(size=7);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;refline 365/transparency=0.5 label=("Year 1")&lt;BR /&gt;labelattrs=(size=4 style=italic weight=bold color=red) lineattrs=(color=red pattern=34) labelloc=outside axis=x;&lt;BR /&gt;refline 730/transparency=0.5 label=("Year 2")&lt;BR /&gt;labelattrs=(size=4 style=italic weight=bold color=red) lineattrs=(color=red pattern=34) labelloc=outside axis=x;&lt;BR /&gt;refline 1095/transparency=0.5 label=("Year 3")&lt;BR /&gt;labelattrs=(size=4 style=italic weight=bold color=red) lineattrs=(color=red pattern=34) labelloc=outside axis=x;&lt;BR /&gt;refline 1460/transparency=0.5 label=("Year 4")&lt;BR /&gt;labelattrs=(size=4 style=italic weight=bold color=red) lineattrs=(color=red pattern=34) labelloc=outside axis=x;&lt;BR /&gt;refline 1825/transparency=0.5 label=("Year 5")&lt;BR /&gt;labelattrs=(size=4 style=italic weight=bold color=red) lineattrs=(color=red pattern=34) labelloc=outside axis=x;&lt;BR /&gt;refline 2190/transparency=0.5 label=("Year 6")&lt;BR /&gt;labelattrs=(size=4 style=italic weight=bold color=red) lineattrs=(color=red pattern=34) labelloc=outside axis=x;&lt;BR /&gt;keylegend "series" "series2" / exclude=("") sortorder=ascending;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you advise what I would need to do?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 19:23:42 GMT</pubDate>
    <dc:creator>Dregerator</dc:creator>
    <dc:date>2021-10-20T19:23:42Z</dc:date>
    <item>
      <title>Adding particular symbols in proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-particular-symbols-in-proc-sgplot/m-p/775490#M246511</link>
      <description>&lt;P&gt;Hi, my question is pretty straightfoward. In this particular code I want to show two symbols in the legend. However, I am not sure how to write syntax to show a trianglefilled and starfilled in the legend. The legend is only populating with subjects that i'm plotting but I would like a legend that shows a star and a triangle so I can indicate one is for the first series and the other one is for the second series since it's all on the same graph. This is my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=adef_bleed_part noautolegend dattrmap=MyAttrMap;&lt;BR /&gt;styleattrs datasymbols=(trianglefilled starfilled);&lt;/P&gt;&lt;P&gt;series x=astdy y=bleed_ep/&lt;BR /&gt;group=subjid markers markerattrs=( size=5 symbol=trianglefilled )&lt;BR /&gt;lineattrs=(pattern=5 thickness=.5) NOMISSINGGROUP name="series" attrid=myreg;&lt;/P&gt;&lt;P&gt;series x=stdy y=aval/&lt;BR /&gt;group=subjid markers markerattrs=( size=5 symbol=starfilled)&lt;BR /&gt;lineattrs=( pattern=1 thickness=2) NOMISSINGGROUP y2axis name="series2" attrid=myreg;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xaxis values=(0 to 2200 by 168) label="Study Day" minor;&lt;BR /&gt;yaxis values=(0 to 30 by 2) label="Cumulative Number of Bleeding Episodes" labelattrs=(size=7);&lt;BR /&gt;y2axis values=(0 to 200000 by 10000) label="Cumulative FIX Consumption (IU)" labelattrs=(size=7);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;refline 365/transparency=0.5 label=("Year 1")&lt;BR /&gt;labelattrs=(size=4 style=italic weight=bold color=red) lineattrs=(color=red pattern=34) labelloc=outside axis=x;&lt;BR /&gt;refline 730/transparency=0.5 label=("Year 2")&lt;BR /&gt;labelattrs=(size=4 style=italic weight=bold color=red) lineattrs=(color=red pattern=34) labelloc=outside axis=x;&lt;BR /&gt;refline 1095/transparency=0.5 label=("Year 3")&lt;BR /&gt;labelattrs=(size=4 style=italic weight=bold color=red) lineattrs=(color=red pattern=34) labelloc=outside axis=x;&lt;BR /&gt;refline 1460/transparency=0.5 label=("Year 4")&lt;BR /&gt;labelattrs=(size=4 style=italic weight=bold color=red) lineattrs=(color=red pattern=34) labelloc=outside axis=x;&lt;BR /&gt;refline 1825/transparency=0.5 label=("Year 5")&lt;BR /&gt;labelattrs=(size=4 style=italic weight=bold color=red) lineattrs=(color=red pattern=34) labelloc=outside axis=x;&lt;BR /&gt;refline 2190/transparency=0.5 label=("Year 6")&lt;BR /&gt;labelattrs=(size=4 style=italic weight=bold color=red) lineattrs=(color=red pattern=34) labelloc=outside axis=x;&lt;BR /&gt;keylegend "series" "series2" / exclude=("") sortorder=ascending;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you advise what I would need to do?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 19:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-particular-symbols-in-proc-sgplot/m-p/775490#M246511</guid>
      <dc:creator>Dregerator</dc:creator>
      <dc:date>2021-10-20T19:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding particular symbols in proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-particular-symbols-in-proc-sgplot/m-p/775528#M246524</link>
      <description>&lt;P&gt;I think to have a chance we need actual data to plot &lt;STRONG&gt;and&lt;/STRONG&gt; the Dattrmap data set. You have a lot of options that interact around Group option behavior and we need all the info about your plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not clear if you want just a two-element "legend" (one triangle and one star) in addition to a legend based on your group values or in place of the group values.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 21:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-particular-symbols-in-proc-sgplot/m-p/775528#M246524</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-10-20T21:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding particular symbols in proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-particular-symbols-in-proc-sgplot/m-p/777875#M247561</link>
      <description>&lt;P&gt;Hi, I figured this out using the legenditem condition.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 10:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-particular-symbols-in-proc-sgplot/m-p/777875#M247561</guid>
      <dc:creator>Dregerator</dc:creator>
      <dc:date>2021-11-02T10:58:15Z</dc:date>
    </item>
  </channel>
</rss>

