<?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: Proc Gplot ignoring symbol2 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117335#M4463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom. I have tried including the line style as shown below, but no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;goptions reset=all;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;proc gplot data=dataset;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;plot cd4count*time=id/nolegend haxis=-1 to 300 by 10 vaxis=0 to 2000 by 100;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;plot2 cd4count*time;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;symbol1 l=1 v=none repeat=369 i=join color=red width=1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;symbol2 l=2 v=none i=r color=blue width=3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;label time='Months since seroconversion';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2012 19:41:54 GMT</pubDate>
    <dc:creator>TomiA</dc:creator>
    <dc:date>2012-05-16T19:41:54Z</dc:date>
    <item>
      <title>Proc Gplot ignoring symbol2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117333#M4461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am interested in creating an individual trend plot for CD4 count over time per person with a regression line.The problem is that proc gplot ignores the symbol2 statement in my syntax and so the plot only has the individual trend lines and no regression line.&lt;/P&gt;&lt;P&gt;The code is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;goptions reset=all;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;proc gplot data=dataset;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;plot cd4count*time=id/nolegend haxis=-1 to 300 by 10 vaxis=0 to 2000 by 100;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;plot2 cd4count*time;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;symbol1 v=none repeat=369 i=join color=red width=1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;symbol2 v=none i=r color=blue width=3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;label time='Months since seroconversion';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;I'll appreciate any help in fixing this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 17:48:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117333#M4461</guid>
      <dc:creator>TomiA</dc:creator>
      <dc:date>2012-05-16T17:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gplot ignoring symbol2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117334#M4462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to fix the line style also.&amp;nbsp; Otherwise SAS will cycle through the line styles using SYMBOL1 before beginning to use SYMBOL2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 18:23:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117334#M4462</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-05-16T18:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gplot ignoring symbol2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117335#M4463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom. I have tried including the line style as shown below, but no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;goptions reset=all;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;proc gplot data=dataset;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;plot cd4count*time=id/nolegend haxis=-1 to 300 by 10 vaxis=0 to 2000 by 100;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;plot2 cd4count*time;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;symbol1 l=1 v=none repeat=369 i=join color=red width=1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;symbol2 l=2 v=none i=r color=blue width=3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;label time='Months since seroconversion';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 19:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117335#M4463</guid>
      <dc:creator>TomiA</dc:creator>
      <dc:date>2012-05-16T19:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gplot ignoring symbol2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117336#M4464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By any chance do you have an ID value that all of the&amp;nbsp; time values are outside 1 to 300 or cd4count outside 0 to 2000?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 20:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117336#M4464</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-05-16T20:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gplot ignoring symbol2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117337#M4465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;No, the ranges were selected to be within the minimum and maximum values obtained from proc means.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 21:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117337#M4465</guid>
      <dc:creator>TomiA</dc:creator>
      <dc:date>2012-05-16T21:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gplot ignoring symbol2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117338#M4466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd say your repeat= option is the culprit.&lt;/P&gt;&lt;P&gt;Remove it and if you get the plot2 start from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 03:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117338#M4466</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2012-05-21T03:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gplot ignoring symbol2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117339#M4467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found it to be difficult (impossible?) to control the line symbols, when combining "plot y*x=z" with a "plot y*x", when doing a plot/plot2, or using the overlay option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend restructuring your data so that you can plot them all using "plot y*x" (without the =z).&amp;nbsp; Or, you could annotate the regression line onto the plot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 17:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117339#M4467</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-05-21T17:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Gplot ignoring symbol2</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117340#M4468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the SASHELP.CLASS data set as an example.&lt;/P&gt;&lt;P&gt;There are two genders (M and F) and age and weight as continuous.&lt;/P&gt;&lt;P&gt;In first plot, i want the age * weight by gender, so I use the symbol1 i = join and repeat = 2(for my 2 genders), so for you repeat = 369 I assume is for the total number of IDs.&lt;/P&gt;&lt;P&gt;Then I do the plot2, for the regression line (overall) between age and weight, using the symbol2 statement with i = r.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the only difference between your code and mine is where I have the symbol statement (immediately after the corresponding plot statement).(which should not matter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions reset=all;&lt;/P&gt;&lt;P&gt;proc sort data = sashelp.class out = temp;by weight;&lt;/P&gt;&lt;P&gt;proc gplot data = temp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;plot age*weight = sex;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;symbol1 v = dot repeat = 2 i = join color = blue width = 3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;plot2 age*weight;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;symbol2 v = none i = r color = green width = 2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;P&gt;Would you be able to provide a sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 19:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Gplot-ignoring-symbol2/m-p/117340#M4468</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2012-11-06T19:46:17Z</dc:date>
    </item>
  </channel>
</rss>

