<?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: Specifying a variable for the y axis in SGPLOT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Specifying-a-variable-for-the-y-axis-in-SGPLOT/m-p/704460#M215955</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/344422"&gt;@sdevenny&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I know this is probably a simple fix, but I cannot get the program to work. I need to make a VBAR graph based off a table sort of like this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data work.whatever;
	INFILE	DATALINES	DELIMITER = ',';
	INPUT	StateCd	:$11.
			ColPercent;
	DATALINES;
Iowa,0.51
Mississippi,0.0
Utah,0.59
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I need the graph to show StateCd as the x-axis and the values of ColPercent as the y-axis, but no matter how I try to code it, I always wind up with each bar showing the frequency (1) and not the value of the variable. How do I get the Iowa bar to show as 0.51 etc?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show some of the code you attempted.&lt;/P&gt;
&lt;P&gt;Probably missing Response=variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has the instructor for your class mentioned how to access the SAS documentation in any flavor?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2020 17:19:52 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-12-08T17:19:52Z</dc:date>
    <item>
      <title>Specifying a variable for the y axis in SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-a-variable-for-the-y-axis-in-SGPLOT/m-p/704357#M215924</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I know this is probably a simple fix, but I cannot get the program to work. I need to make a VBAR graph based off a table sort of like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data work.whatever;
	INFILE	DATALINES	DELIMITER = ',';
	INPUT	StateCd	:$8.
			ColPercent;
	DATALINES;
Ohio,0.51
Delaware,0.0
Alaska,0.59
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I need the graph to show StateCd as the x-axis and the values of ColPercent as the y-axis, but no matter how I try to code it, I always wind up with each bar showing the frequency (1) and not the value of the variable. How do I get the Ohio bar to show as 0.51 etc?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-a-variable-for-the-y-axis-in-SGPLOT/m-p/704357#M215924</guid>
      <dc:creator>sdevenny</dc:creator>
      <dc:date>2020-12-10T15:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying a variable for the y axis in SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-a-variable-for-the-y-axis-in-SGPLOT/m-p/704393#M215935</link>
      <description>&lt;PRE&gt;Hi,&lt;BR /&gt;The code below could give you what you are trying to display. There is some unnecessary&amp;nbsp;code that you can take.&lt;BR /&gt;My best guess as to why you did not get the results you were looking for is because the response was not set to &lt;BR /&gt;ColPercent. I hope this helps!&lt;BR /&gt;&lt;BR /&gt;PROC SGPLOT DATA = Work.whatever;&lt;BR /&gt;						&lt;BR /&gt;  &lt;BR /&gt;		VBAR StateCd&lt;BR /&gt;		/ response= ColPercent &lt;BR /&gt;							  GROUPDISPLAY=cluster&lt;BR /&gt;							  DATALABEL = ColPercent;                             &lt;BR /&gt;			&lt;BR /&gt;			XAXIS	&lt;BR /&gt;			LABEL		= 'State Code'&lt;BR /&gt;			LABELATTRS	= (	SIZE	= 9 PT&lt;BR /&gt;							WEIGHT	= BOLD&lt;BR /&gt;							COLOR	= Black	);&lt;BR /&gt;							&lt;BR /&gt;			YAXIS	&lt;BR /&gt;			LABEL		= 'Percent'&lt;BR /&gt;			GRID&lt;BR /&gt;			LABELATTRS	= (	SIZE	= 9 PT&lt;BR /&gt;							WEIGHT	= BOLD&lt;BR /&gt;							COLOR	= Black	);				&lt;BR /&gt;	&lt;BR /&gt;	RUN;&lt;BR /&gt;	QUIT;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Dec 2020 13:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-a-variable-for-the-y-axis-in-SGPLOT/m-p/704393#M215935</guid>
      <dc:creator>James18</dc:creator>
      <dc:date>2020-12-08T13:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying a variable for the y axis in SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-a-variable-for-the-y-axis-in-SGPLOT/m-p/704460#M215955</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/344422"&gt;@sdevenny&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I know this is probably a simple fix, but I cannot get the program to work. I need to make a VBAR graph based off a table sort of like this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data work.whatever;
	INFILE	DATALINES	DELIMITER = ',';
	INPUT	StateCd	:$11.
			ColPercent;
	DATALINES;
Iowa,0.51
Mississippi,0.0
Utah,0.59
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I need the graph to show StateCd as the x-axis and the values of ColPercent as the y-axis, but no matter how I try to code it, I always wind up with each bar showing the frequency (1) and not the value of the variable. How do I get the Iowa bar to show as 0.51 etc?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show some of the code you attempted.&lt;/P&gt;
&lt;P&gt;Probably missing Response=variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has the instructor for your class mentioned how to access the SAS documentation in any flavor?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 17:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-a-variable-for-the-y-axis-in-SGPLOT/m-p/704460#M215955</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-08T17:19:52Z</dc:date>
    </item>
  </channel>
</rss>

