<?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 SGPLOT mixing line and scatter plots? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-mixing-line-and-scatter-plots/m-p/652333#M20009</link>
    <description>&lt;P&gt;Ahh.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I feel certain I had tried this already... but it's easy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=a;&lt;BR /&gt;styleattrs datasymbols=(circlefilled);&lt;BR /&gt;scatter y=Y1 x=X1 / group=groupname;&lt;BR /&gt;series y=Y2 x=X1;&lt;BR /&gt;series y=Y3 x=X1 / lineattrs = (pattern=shortdash);&lt;BR /&gt;series y=Y4 x=X1 / lineattrs = (pattern=shortdash);&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jun 2020 18:36:46 GMT</pubDate>
    <dc:creator>iiibbb</dc:creator>
    <dc:date>2020-06-01T18:36:46Z</dc:date>
    <item>
      <title>PROC SGPLOT mixing line and scatter plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-mixing-line-and-scatter-plots/m-p/652309#M20006</link>
      <description>&lt;P&gt;Hi--&lt;/P&gt;
&lt;P&gt;I've reached my limit of tinkering to figure this out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to overlay multiple graph types in a single graph?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a data set with columns X Y1 Y2 Y3 and Y4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to plot Y1 using a scatter plot (points color coded by group for a little extra level of complication)&lt;/P&gt;
&lt;P&gt;I want Y2 to be plotted with just a simple line&lt;/P&gt;
&lt;P&gt;I want Y3 and Y4 to be plotted with a different line type&lt;BR /&gt;&lt;BR /&gt;basically a combination of these two styles basically.&amp;nbsp; I'd like the top one, but with the colors by group as is so easily produced in SGPlot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iiibbb_2-1591031373088.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40231i74348EB8D0E5CCF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="iiibbb_2-1591031373088.png" alt="iiibbb_2-1591031373088.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iiibbb_1-1591031330329.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40230i77E365C442312E71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="iiibbb_1-1591031330329.png" alt="iiibbb_1-1591031330329.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 17:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-mixing-line-and-scatter-plots/m-p/652309#M20006</guid>
      <dc:creator>iiibbb</dc:creator>
      <dc:date>2020-06-01T17:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT mixing line and scatter plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-mixing-line-and-scatter-plots/m-p/652317#M20007</link>
      <description>&lt;P&gt;Yes, in PROC SGPLOT you use the REG command with the option NOMARKERS to get the confidence limits and regression line. Then you add a SCATTER statement to get the data points colored as you wish.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 17:57:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-mixing-line-and-scatter-plots/m-p/652317#M20007</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-06-01T17:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT mixing line and scatter plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-mixing-line-and-scatter-plots/m-p/652321#M20008</link>
      <description>&lt;P&gt;I saw that feature.&amp;nbsp; Unfortunately, I'm not using an OLS regression in this case, so the regression methods won't match the models I'm actually building.&lt;BR /&gt;&lt;BR /&gt;I think the solution may lie in the series statements, I'm still tinkering.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 18:19:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-mixing-line-and-scatter-plots/m-p/652321#M20008</guid>
      <dc:creator>iiibbb</dc:creator>
      <dc:date>2020-06-01T18:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT mixing line and scatter plots?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-mixing-line-and-scatter-plots/m-p/652333#M20009</link>
      <description>&lt;P&gt;Ahh.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I feel certain I had tried this already... but it's easy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=a;&lt;BR /&gt;styleattrs datasymbols=(circlefilled);&lt;BR /&gt;scatter y=Y1 x=X1 / group=groupname;&lt;BR /&gt;series y=Y2 x=X1;&lt;BR /&gt;series y=Y3 x=X1 / lineattrs = (pattern=shortdash);&lt;BR /&gt;series y=Y4 x=X1 / lineattrs = (pattern=shortdash);&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 18:36:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-mixing-line-and-scatter-plots/m-p/652333#M20009</guid>
      <dc:creator>iiibbb</dc:creator>
      <dc:date>2020-06-01T18:36:46Z</dc:date>
    </item>
  </channel>
</rss>

