<?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 Proc sgplot showing five variables using scatter statement? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781326#M22341</link>
    <description>&lt;P&gt;How to plot five variables using Proc SGplot and the Scatter statement(s)?&lt;/P&gt;&lt;P&gt;var1: x&lt;/P&gt;&lt;P&gt;var2: y&lt;/P&gt;&lt;P&gt;var3: group&lt;/P&gt;&lt;P&gt;var4: markerchar?&lt;/P&gt;&lt;P&gt;var5: ?&lt;/P&gt;&lt;P&gt;Ideally, I would like to vary the symbol, symbol size, and symbol color on each figure.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using 9.4, SAS/STAT 15.1.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Nov 2021 17:12:05 GMT</pubDate>
    <dc:creator>BayesBeatsFreqs</dc:creator>
    <dc:date>2021-11-19T17:12:05Z</dc:date>
    <item>
      <title>Proc sgplot showing five variables using scatter statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781326#M22341</link>
      <description>&lt;P&gt;How to plot five variables using Proc SGplot and the Scatter statement(s)?&lt;/P&gt;&lt;P&gt;var1: x&lt;/P&gt;&lt;P&gt;var2: y&lt;/P&gt;&lt;P&gt;var3: group&lt;/P&gt;&lt;P&gt;var4: markerchar?&lt;/P&gt;&lt;P&gt;var5: ?&lt;/P&gt;&lt;P&gt;Ideally, I would like to vary the symbol, symbol size, and symbol color on each figure.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using 9.4, SAS/STAT 15.1.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 17:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781326#M22341</guid>
      <dc:creator>BayesBeatsFreqs</dc:creator>
      <dc:date>2021-11-19T17:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot showing five variables using scatter statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781330#M22342</link>
      <description>&lt;P&gt;If you have 5 separate variables you can include 5 series statements and control the symbols/colours in the statement.&lt;/P&gt;
&lt;P&gt;Example with two lines here&lt;/P&gt;
&lt;P&gt;&lt;A href="https://robslink.com/SAS/ods2/sct1_info.htm" target="_blank"&gt;https://robslink.com/SAS/ods2/sct1_info.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option is discrete attribute maps, for each variable you'll specify the symbol, colour, thickness etc in a data set and then pass that to the procedure.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n18szqcwir8q2nn10od9hhdh2ksj.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n18szqcwir8q2nn10od9hhdh2ksj.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278775"&gt;@BayesBeatsFreqs&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How to plot five variables using Proc SGplot and the Scatter statement(s)?&lt;/P&gt;
&lt;P&gt;var1: x&lt;/P&gt;
&lt;P&gt;var2: y&lt;/P&gt;
&lt;P&gt;var3: group&lt;/P&gt;
&lt;P&gt;var4: markerchar?&lt;/P&gt;
&lt;P&gt;var5: ?&lt;/P&gt;
&lt;P&gt;Ideally, I would like to vary the symbol, symbol size, and symbol color on each figure.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using 9.4, SAS/STAT 15.1.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 17:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781330#M22342</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-19T17:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot showing five variables using scatter statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781331#M22343</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278775"&gt;@BayesBeatsFreqs&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How to plot five variables using Proc SGplot and the Scatter statement(s)?&lt;/P&gt;
&lt;P&gt;var1: x&lt;/P&gt;
&lt;P&gt;var2: y&lt;/P&gt;
&lt;P&gt;var3: group&lt;/P&gt;
&lt;P&gt;var4: markerchar?&lt;/P&gt;
&lt;P&gt;var5: ?&lt;/P&gt;
&lt;P&gt;Ideally, I would like to vary the symbol, symbol size, and symbol color on each figure.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using 9.4, SAS/STAT 15.1.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;From this description, I don't really have a good idea of what the resulting plot would look like. I also don't know how "var5: ?" should be interpreted.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 17:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781331#M22343</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-19T17:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot showing five variables using scatter statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781332#M22344</link>
      <description>var5 is just another variable. the question mark (?) indicates that I don't know what option in the scatter statement that would allow for a fifth variable on the figure.</description>
      <pubDate>Fri, 19 Nov 2021 17:38:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781332#M22344</guid>
      <dc:creator>BayesBeatsFreqs</dc:creator>
      <dc:date>2021-11-19T17:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot showing five variables using scatter statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781335#M22345</link>
      <description>&lt;P&gt;What is var5 supposed to be used for? A question mark doesn't provide much help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default the Value of group is used to assign Marker appearance but the option Markerchar=variable can be used. Example with a data set you should have.&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.class;
   scatter x=height y=weight/ markerchar=name;
run;&lt;/PRE&gt;
&lt;P&gt;If you have a Group variable such as:&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.class;
   scatter x=height y=weight/group=age markerchar=name;
run;&lt;/PRE&gt;
&lt;P&gt;the values of the group variable will set some marker attributes, mostly color but possibly size of text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should provide some explicit descriptions of exactly what you want to control and the rules involved.&lt;/P&gt;
&lt;P&gt;The DATTRMAP optional data set can be used to address GROUP variable appearance which would include settings for markers such as marker size, symbol, color, transparency.&lt;/P&gt;
&lt;P&gt;The DATTRMAP may be the best way to control consistency across multiple graphs.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 17:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781335#M22345</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-11-19T17:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot showing five variables using scatter statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781349#M22346</link>
      <description>Ok, more detail: var1 and var2 are continuous, and var3-var5 are categorical with lets say two levels each, so a total of eight groups. How to show all eight groups on one figure? Each variable (var3-var5) should be identified by one of the following: symbol, symbol size, symbol color.</description>
      <pubDate>Fri, 19 Nov 2021 17:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781349#M22346</guid>
      <dc:creator>BayesBeatsFreqs</dc:creator>
      <dc:date>2021-11-19T17:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot showing five variables using scatter statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781354#M22347</link>
      <description>I'm sorry but that's not enough to provide more help if you require it. Can you show an example of your data and the plot you want then?&lt;BR /&gt;I'm not sure how you'd show all that information on a single plot. &lt;BR /&gt;If you cannot share your own data consider creating a sample plot in Excel using the sashelp.heart data set which has a few continuous and categorical variables.</description>
      <pubDate>Fri, 19 Nov 2021 18:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781354#M22347</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-19T18:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot showing five variables using scatter statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781355#M22348</link>
      <description>&lt;P&gt;Can't offer any more info.&amp;nbsp; It was just a general question prompted by something I read.&amp;nbsp; thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 18:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781355#M22348</guid>
      <dc:creator>BayesBeatsFreqs</dc:creator>
      <dc:date>2021-11-19T18:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot showing five variables using scatter statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781358#M22349</link>
      <description>&lt;P&gt;How about six variables on one plot? Here's what has been called the best statistical plot ever made: a drawing of Napoleon's campaign into Russia in 1812. &lt;A href="https://bigthink.com/strange-maps/229-vital-statistics-of-a-deadly-campaign-the-minard-map/" target="_blank"&gt;https://bigthink.com/strange-maps/229-vital-statistics-of-a-deadly-campaign-the-minard-map/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 18:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781358#M22349</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-19T18:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot showing five variables using scatter statement?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781373#M22350</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278775"&gt;@BayesBeatsFreqs&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Ok, more detail: var1 and var2 are continuous, and var3-var5 are categorical with lets say two levels each, so a total of eight groups. How to show all eight groups on one figure? Each variable (var3-var5) should be identified by one of the following: symbol, symbol size, symbol color.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Proc sgplot will allow multiple plots to overlay on a single graph. Mixing some types is limited and may require you to modify your data bit depending what type of display you want for categorical. To display Scatter, series or similar plots with "categorical" really depends on what you want as there are limits at to what can be displayed on a single plot together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show you need to show what you might want or perhaps wonder around here to look at examples with data and code from multiple procedures: &lt;A href="https://support.sas.com/en/knowledge-base/graph-samples-gallery.html" target="_blank"&gt;https://support.sas.com/en/knowledge-base/graph-samples-gallery.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 19:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-sgplot-showing-five-variables-using-scatter-statement/m-p/781373#M22350</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-11-19T19:41:51Z</dc:date>
    </item>
  </channel>
</rss>

