<?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 how to create multiple lines plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759918#M21788</link>
    <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;pool&lt;/TD&gt;&lt;TD&gt;count&lt;/TD&gt;&lt;TD&gt;average&lt;/TD&gt;&lt;TD&gt;upper&lt;/TD&gt;&lt;TD&gt;lower&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2068&lt;/TD&gt;&lt;TD&gt;0.0953&lt;/TD&gt;&lt;TD&gt;0.1059&lt;/TD&gt;&lt;TD&gt;0.0846&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6120&lt;/TD&gt;&lt;TD&gt;0.2408&lt;/TD&gt;&lt;TD&gt;0.2498&lt;/TD&gt;&lt;TD&gt;0.2319&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;6215&lt;/TD&gt;&lt;TD&gt;0.3390&lt;/TD&gt;&lt;TD&gt;0.3489&lt;/TD&gt;&lt;TD&gt;0.3291&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4625&lt;/TD&gt;&lt;TD&gt;0.4244&lt;/TD&gt;&lt;TD&gt;0.4364&lt;/TD&gt;&lt;TD&gt;0.4125&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1695&lt;/TD&gt;&lt;TD&gt;0.5268&lt;/TD&gt;&lt;TD&gt;0.5468&lt;/TD&gt;&lt;TD&gt;0.5069&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Hello everyone, know someone how to easily get multiple lines plot from these data?&lt;BR /&gt;Upper and lower are confidence interval, average is mean. Count is not relevant and pool is some group.&lt;/P&gt;&lt;P&gt;I'll be glad for any help.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 12:24:00 GMT</pubDate>
    <dc:creator>matus2711</dc:creator>
    <dc:date>2021-08-06T12:24:00Z</dc:date>
    <item>
      <title>how to create multiple lines plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759918#M21788</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;pool&lt;/TD&gt;&lt;TD&gt;count&lt;/TD&gt;&lt;TD&gt;average&lt;/TD&gt;&lt;TD&gt;upper&lt;/TD&gt;&lt;TD&gt;lower&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2068&lt;/TD&gt;&lt;TD&gt;0.0953&lt;/TD&gt;&lt;TD&gt;0.1059&lt;/TD&gt;&lt;TD&gt;0.0846&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6120&lt;/TD&gt;&lt;TD&gt;0.2408&lt;/TD&gt;&lt;TD&gt;0.2498&lt;/TD&gt;&lt;TD&gt;0.2319&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;6215&lt;/TD&gt;&lt;TD&gt;0.3390&lt;/TD&gt;&lt;TD&gt;0.3489&lt;/TD&gt;&lt;TD&gt;0.3291&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4625&lt;/TD&gt;&lt;TD&gt;0.4244&lt;/TD&gt;&lt;TD&gt;0.4364&lt;/TD&gt;&lt;TD&gt;0.4125&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1695&lt;/TD&gt;&lt;TD&gt;0.5268&lt;/TD&gt;&lt;TD&gt;0.5468&lt;/TD&gt;&lt;TD&gt;0.5069&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Hello everyone, know someone how to easily get multiple lines plot from these data?&lt;BR /&gt;Upper and lower are confidence interval, average is mean. Count is not relevant and pool is some group.&lt;/P&gt;&lt;P&gt;I'll be glad for any help.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 12:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759918#M21788</guid>
      <dc:creator>matus2711</dc:creator>
      <dc:date>2021-08-06T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to create multiple lines plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759922#M21789</link>
      <description>&lt;P&gt;UNTESTED CODE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=have;
    series x=pool y=average;
    series x=pool y=upper;
    series x=pool y=lower;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;If you want tested code (and this is always a good idea anyway,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/368382"&gt;@matus2711&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;) provide the data as SAS data step code (&lt;/SPAN&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self" rel="nofollow noopener noreferrer"&gt;instructions&lt;/A&gt;&lt;SPAN&gt;) and not as a screen capture, something you should just do automatically, every time you ask a question; and from now on we will expect data in this form and not as screen captures.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 12:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759922#M21789</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-06T12:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to create multiple lines plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759925#M21790</link>
      <description>&lt;P&gt;Usually, when someone wants a line plot there is an X (indep) and a Y variable (response). What variable do you want to use as X?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For these data, you can create a set of lines that show the average and CI for each group. This kind of plot is sometimes called &lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2012/02/01/forest-plot-using-sgplot-procedure/" target="_self"&gt;a "forest plot."&lt;/A&gt;&amp;nbsp; It can be used to &lt;A href="https://blogs.sas.com/content/iml/2015/07/29/or-plots-log-scale.html" target="_self"&gt;compare means of groups or to show odds ratios.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
input pool	count	average	upper	lower;
datalines;
1	2068	0.0953	0.1059	0.0846
2	6120	0.2408	0.2498	0.2319
3	6215	0.3390	0.3489	0.3291
4	4625	0.4244	0.4364	0.4125
5	1695	0.5268	0.5468	0.5069
;

proc sgplot data=Have;
   scatter x=pool y=average / yerrorlower=lower yerrorupper=upper;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want a different plot, please specify or draw it on paper and upload a picture.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 12:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759925#M21790</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-08-06T12:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to create multiple lines plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759928#M21791</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/368382"&gt;@matus2711&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the answer from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;is a better answer than mine, would you please mark his answer as correct? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 12:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759928#M21791</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-06T12:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to create multiple lines plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759934#M21792</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=have;
    band x=pool upper=upper lower=lower/transpancy=0.5;
	series x=pool y=average;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1628255177844.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62324iACC919606C21C439/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1628255177844.png" alt="Ksharp_0-1628255177844.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 13:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759934#M21792</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-08-06T13:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to create multiple lines plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759936#M21793</link>
      <description>&lt;P&gt;To expand on Paige's gracious response, some graphical experts discourage connecting groups with line segments. There is no "Group=1.5" or "Group=2.8", so some folks argue that it is misleading to plot line segments.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 13:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759936#M21793</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-08-06T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to create multiple lines plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759937#M21794</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;To expand on Paige's gracious response, some graphical experts discourage connecting groups with line segments. There is no "Group=1.5" or "Group=2.8", so some folks argue that it is misleading to plot line segments.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A good point from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;, it is a very common thing for people to treat groups as continuous in their plots, and (ideally) is should be a much less common situation.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 13:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-create-multiple-lines-plot/m-p/759937#M21794</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-08-06T13:27:50Z</dc:date>
    </item>
  </channel>
</rss>

