<?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: legend with count (n) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519342#M3773</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output is attached. discreteattribmap working for scatter but not matching with line color from 'line' of series plot. I need line,symbol color,symbol shape need to merged in legend and plot. can anybody help?&lt;/P&gt;&lt;P&gt;trt= 'Drug A' or 'Drug B'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;trtn= 'Drug A(n=200)' or 'Drug B(n=230)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph order;&lt;BR /&gt;begingraph;&lt;BR /&gt;layout overlay/yaxisopts=(label="Concenration mg/L")&lt;BR /&gt;xaxisopts=(label="Week");&lt;BR /&gt;ScatterPlot&lt;BR /&gt;X=ndy Y=meancon / GROUP=trt NAME="scatter"&lt;BR /&gt;YErrorLower=EVAL(meancon-stdcon)&lt;BR /&gt;YErrorUpper=EVAL(meancon+stdcon);&lt;BR /&gt;SeriesPlot X=ndy Y=meancon / GROUP=trtn name = 'line' ;&lt;BR /&gt;mergedlegend 'scatter' 'line' / ;&lt;BR /&gt;;&lt;BR /&gt;EndLayout&lt;BR /&gt;;&lt;BR /&gt;EndGraph&lt;BR /&gt;;&lt;BR /&gt;END;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;ods rtf file = 'C:\Users\sasgraph_lib\meanplot1.rtf' style = mystyle;&lt;BR /&gt;PROC SGRENDER DATA=pk2 dattrmap = sym TEMPLATE=order&lt;BR /&gt;; dattrvar trt ='kk' ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;BR /&gt;ods listing;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Dec 2018 02:03:37 GMT</pubDate>
    <dc:creator>somkamalin</dc:creator>
    <dc:date>2018-12-07T02:03:37Z</dc:date>
    <item>
      <title>legend with count (n)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519299#M3756</link>
      <description>&lt;P&gt;I have variables trt and&amp;nbsp; trt(n=200). In mean plot automation process (GTL), I want to apply discreteattribmap from dataset&amp;nbsp; to trt which is already there in input dataset but want to display only trt(n=200)&amp;nbsp; in legend.&amp;nbsp; &amp;nbsp;trt(n=200) is generated while running GTL which i cant assign attrimmap before running code. I tried with linecolor = trt. in series plot. .It displayed both trt, trt(n=200).&amp;nbsp; &amp;nbsp;but only want trt(n=200) in legend..&amp;nbsp; &amp;nbsp;Can any one help me?.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 22:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519299#M3756</guid>
      <dc:creator>somkamalin</dc:creator>
      <dc:date>2018-12-06T22:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: legend with count (n)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519321#M3766</link>
      <description>&lt;P&gt;I think that you will need to show at a minimum your existing GTL code and the Proc Sgender used to create the graphs.&lt;/P&gt;
&lt;P&gt;Possibly example data as well.&lt;/P&gt;
&lt;P&gt;Since " trt(n=200)" is an unlikely variable name it isn't clear exactly what this is supposed to represent when you say "I have variables trt and&amp;nbsp; trt(n=200).&amp;nbsp;"&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 23:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519321#M3766</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-12-06T23:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: legend with count (n)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519330#M3770</link>
      <description>sorry for the confusion. trt variable takes character values 'Drug A' and&lt;BR /&gt;trt(n=200) is not variable name . You can rename it as trtn which takes&lt;BR /&gt;value 'Drug A (n=200)'.. I will send the code shortly.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2018 00:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519330#M3770</guid>
      <dc:creator>somkamalin</dc:creator>
      <dc:date>2018-12-07T00:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: legend with count (n)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519342#M3773</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output is attached. discreteattribmap working for scatter but not matching with line color from 'line' of series plot. I need line,symbol color,symbol shape need to merged in legend and plot. can anybody help?&lt;/P&gt;&lt;P&gt;trt= 'Drug A' or 'Drug B'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;trtn= 'Drug A(n=200)' or 'Drug B(n=230)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph order;&lt;BR /&gt;begingraph;&lt;BR /&gt;layout overlay/yaxisopts=(label="Concenration mg/L")&lt;BR /&gt;xaxisopts=(label="Week");&lt;BR /&gt;ScatterPlot&lt;BR /&gt;X=ndy Y=meancon / GROUP=trt NAME="scatter"&lt;BR /&gt;YErrorLower=EVAL(meancon-stdcon)&lt;BR /&gt;YErrorUpper=EVAL(meancon+stdcon);&lt;BR /&gt;SeriesPlot X=ndy Y=meancon / GROUP=trtn name = 'line' ;&lt;BR /&gt;mergedlegend 'scatter' 'line' / ;&lt;BR /&gt;;&lt;BR /&gt;EndLayout&lt;BR /&gt;;&lt;BR /&gt;EndGraph&lt;BR /&gt;;&lt;BR /&gt;END;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;ods rtf file = 'C:\Users\sasgraph_lib\meanplot1.rtf' style = mystyle;&lt;BR /&gt;PROC SGRENDER DATA=pk2 dattrmap = sym TEMPLATE=order&lt;BR /&gt;; dattrvar trt ='kk' ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;BR /&gt;ods listing;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 02:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519342#M3773</guid>
      <dc:creator>somkamalin</dc:creator>
      <dc:date>2018-12-07T02:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: legend with count (n)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519433#M3807</link>
      <description>&lt;P&gt;main aim is to :&amp;nbsp; &amp;nbsp;1.&amp;nbsp; color , shape of line , symbol with&amp;nbsp; "trt" from discreteattribmap applied to trt .&lt;/P&gt;&lt;P&gt;2. make legend with trtn which has count as above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. line&amp;nbsp; and symbol merged in legend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody give hint or suggestion&amp;nbsp; on this ?. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 14:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519433#M3807</guid>
      <dc:creator>somkamalin</dc:creator>
      <dc:date>2018-12-07T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: legend with count (n)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519449#M3809</link>
      <description>&lt;P&gt;Why do you have two different group variables if they should display as a single item on the legend?&lt;/P&gt;
&lt;P&gt;All the examples if find using MERGEDLEGEND show use of the same GROUP variable.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 15:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519449#M3809</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-12-07T15:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: legend with count (n)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519472#M3811</link>
      <description>&lt;P&gt;trt is from input data set which i am assigning discreteattribmap for color , symbol, line type. But trtn generated during GTL run which I cant assign discreteattribmap beforehand. only difference&amp;nbsp; between them is suffix count. I need only legend with trtn. Main aim is&amp;nbsp; to get discreteatribmap directly from input data set.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 16:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/519472#M3811</guid>
      <dc:creator>somkamalin</dc:creator>
      <dc:date>2018-12-07T16:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: legend with count (n)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/521022#M4137</link>
      <description>&lt;P&gt;No response yet.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 22:01:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/legend-with-count-n/m-p/521022#M4137</guid>
      <dc:creator>somkamalin</dc:creator>
      <dc:date>2018-12-12T22:01:21Z</dc:date>
    </item>
  </channel>
</rss>

