<?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: how do I show dash for medain in scatterplot statement in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/how-do-I-show-dash-for-medain-in-scatterplot-statement/m-p/562291#M18211</link>
    <description>&lt;P&gt;Here is some example data and a program that works in the latest version of SAS:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
call streaminit(123);
do tseqpg1 = 0, 1;
   do avisitn = 1 to 4;
      mean = avisitn;
      do i = 1 to 30;
        y = rand("Normal", mean, 1);
        output;
      end;
   end;
end;
drop i;
run;

proc sgpanel data=have noautolegend;
panelby tseqpg1;
symbolchar name=sym1 char='2014'x / textattrs=(family='Arial Unicode MS' weight=bold);
scatter x=avisitn y=y / jitter transparency=0.5;
scatter x=avisitn y=mean / markerattrs=(symbol=sym1 size=40);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hopefully, it works for you. If not, supply some sample data. Maybe we can use a HIGHLOW or VECTOR statement to create the graph you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 14:24:01 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-05-29T14:24:01Z</dc:date>
    <item>
      <title>how do I show dash for medain in scatterplot statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-do-I-show-dash-for-medain-in-scatterplot-statement/m-p/561699#M18202</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;when I use this syntax in sgpanel (I am using LSAF = SAS9.4):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)symbolchar name=sym1 char='2014'x ;&lt;/STRONG&gt;&lt;BR /&gt;scatter x=avisitn y=mean / markerattrs=(&lt;STRONG&gt;symbol=sym1&lt;/STRONG&gt; size=10pt color=black) name="med";&lt;/P&gt;&lt;P&gt;I am not getting all datapoints right (half is visible, half is missing)&lt;/P&gt;&lt;P&gt;see attached file "symbolchar"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when I use normal symbol=plus (commenting symbolchar statement)&lt;BR /&gt;&lt;STRONG&gt;2)&lt;/STRONG&gt; scatter x=avisitn y=mean / markerattrs=(&lt;STRONG&gt;symbol=plus&lt;/STRONG&gt; size=10pt color=black) name="med";&lt;/P&gt;&lt;P&gt;I am getting all results correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using in previous graphs :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3)&lt;/STRONG&gt; scatter x=avisit2n y=MEDIAN / &lt;STRONG&gt;MARKERCHAR=box_char&lt;/STRONG&gt; MARKERCHARATTRS=(color= black size=10PT) yerrorlower = lci yerrorupper = uci ERRORBARATTRS=(color=black) name="med";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in dataset:&lt;/P&gt;&lt;P&gt;box_char="--------";&lt;/P&gt;&lt;P&gt;but this produces legend that show squarefilled instead of dash&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know how to show dash as graphical representation of the mean on top of other scatter plots in procedure sgpanel.&lt;/P&gt;&lt;P&gt;Full sgpanel syntax for reference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgpanel data = xxxx;&lt;BR /&gt;panelby tseqpg1 / border colheaderpos =top layout=columnlattice spacing = 0 novarname ONEPANEL sort = DATA;&lt;BR /&gt;&lt;BR /&gt;refline 1000/ axis=y LINEATTRS=(pattern = mediumdash color = black) label="LLOQ";&lt;BR /&gt;&lt;BR /&gt;scatter x=avisitn y=aval_resp / jitter legendlabel="Responder" markerattrs=(color=green symbol=circlefilled) name="r1";&lt;BR /&gt;scatter x=avisitn y=aval_noresp / jitter legendlabel="No Responder" markerattrs=(color=orange symbol=circle) name="nr1";&lt;BR /&gt;&lt;BR /&gt;symbolchar name=sym1 char='2014'x ;&lt;BR /&gt;scatter x=avisitn y=mean / markerattrs=(symbol=sym1 size=25pt color=black) name="med";&lt;/P&gt;&lt;P&gt;colaxistable N MEAN RESPONDERS_RATE / NOMISSINGCHAR SEPARATOR X=avisitn statlabel name="stat_table" VALUEATTRS=(Size=7pt);&lt;BR /&gt;rowaxis logbase = 10 logstyle=logexpand type=log label="EU/ml" min = 100 max=10000 LOGVTYPE=EXPANDED MINOR minorcount=9&lt;BR /&gt;GRID GRIDATTRS=(color=grayee pattern=solid THICKNESS=1) MINORGRID MINORGRIDATTRS=(color=grayee pattern=solid THICKNESS=1);&lt;BR /&gt;colaxis type=linear integer label="Weeks" VALUES=( 1 3&amp;nbsp; 5 7 9 11);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 08:58:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-do-I-show-dash-for-medain-in-scatterplot-statement/m-p/561699#M18202</guid>
      <dc:creator>ab11</dc:creator>
      <dc:date>2019-05-27T08:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: how do I show dash for medain in scatterplot statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-do-I-show-dash-for-medain-in-scatterplot-statement/m-p/562291#M18211</link>
      <description>&lt;P&gt;Here is some example data and a program that works in the latest version of SAS:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
call streaminit(123);
do tseqpg1 = 0, 1;
   do avisitn = 1 to 4;
      mean = avisitn;
      do i = 1 to 30;
        y = rand("Normal", mean, 1);
        output;
      end;
   end;
end;
drop i;
run;

proc sgpanel data=have noautolegend;
panelby tseqpg1;
symbolchar name=sym1 char='2014'x / textattrs=(family='Arial Unicode MS' weight=bold);
scatter x=avisitn y=y / jitter transparency=0.5;
scatter x=avisitn y=mean / markerattrs=(symbol=sym1 size=40);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hopefully, it works for you. If not, supply some sample data. Maybe we can use a HIGHLOW or VECTOR statement to create the graph you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 14:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-do-I-show-dash-for-medain-in-scatterplot-statement/m-p/562291#M18211</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-05-29T14:24:01Z</dc:date>
    </item>
  </channel>
</rss>

