<?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 sgpanel x-axis with multiple scales in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425779#M14683</link>
    <description>That doesn't change my answer other than meaning you should choose UNISCALE=ROW instead of UNISCALE=COLUMN.</description>
    <pubDate>Mon, 08 Jan 2018 15:17:44 GMT</pubDate>
    <dc:creator>snoopy369</dc:creator>
    <dc:date>2018-01-08T15:17:44Z</dc:date>
    <item>
      <title>proc sgpanel y-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425758#M14678</link>
      <description>&lt;P&gt;I'd like use multiple scales on y-axis using below max min values.&lt;/P&gt;&lt;P&gt;agecat1 max= 12 min=3;&amp;nbsp;agecat2 max=20 min=6, agecat3 max=20 min=5&amp;nbsp;agecat4 max=24 min=8;&amp;nbsp;agecat5 max=27, min=7.&lt;/P&gt;&lt;P&gt;Could you please help modify&amp;nbsp;the code below&amp;nbsp;for multiple scales?&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="supportJan8.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17692i5D7E37344A99F5E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="supportJan8.png" alt="supportJan8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=data; by race agecat cat year; run;
ods graphics / height=2000 width=3000;
proc sgpanel data=data;
panelby race agecat/novarname onepanel LAYOUT=panel columns=5 ROWHEADERPOS=right COLHEADERPOS=bottom;
series y=rate x=year / group=cat lineattrs=(pattern=solid);
keylegend/title="legend title" position=bottom;
colaxis label='column title' fitpolicy=thin valuesformat=best4.0 values=(2002 to 2018 by 2);
rowaxis label='rowtitle' grid max=27.0;
title "title";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;using SAS 9.4. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 15:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425758#M14678</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-08T15:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425775#M14679</link>
      <description>&lt;P&gt;It's a bit hard to understand your question; but if you're asking how to make the X axis have different scales, you can use the option on the PANELBY statement &lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n0wqazuv6959fnn1fask7mi68lla.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1wsegbk0v9jbzn18c659jj65hsn" target="_self"&gt;UNISCALE&lt;/A&gt;&amp;nbsp;which lets you choose between having all column axes the same but row axes different, or all row axes the same and column axes different (this is what you want), or both the same.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 15:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425775#M14679</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-01-08T15:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425776#M14680</link>
      <description>&lt;P&gt;Don't you mean that you want different scales on your y-axes for different values of your ageat variable?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 15:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425776#M14680</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-08T15:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425777#M14681</link>
      <description>hey, yes. y-axis. i just edited my post. thanks!</description>
      <pubDate>Mon, 08 Jan 2018 15:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425777#M14681</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-08T15:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425778#M14682</link>
      <description>My apology. I meant y-axis. I'm dealing with data that is different by age. so using same scale for all age categories is not making a perfect sense here. hope that makes sense.</description>
      <pubDate>Mon, 08 Jan 2018 15:13:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425778#M14682</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-08T15:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425779#M14683</link>
      <description>That doesn't change my answer other than meaning you should choose UNISCALE=ROW instead of UNISCALE=COLUMN.</description>
      <pubDate>Mon, 08 Jan 2018 15:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425779#M14683</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-01-08T15:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425781#M14684</link>
      <description>&lt;P&gt;Ok. My first question is: why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually you create a panel of graphs like this to be able to quickly compare characteristics of different group sin your data (in your example age and race). This comparability is worsened if you do not have the same values on your axes?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 15:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425781#M14684</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-08T15:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425785#M14685</link>
      <description>Plots on same scale should be kept for reference. Also, it's kids weight and height data where agecat is a modifier. So comparing newborn (agecat=1) to 5 year old kid (agecat=5) is not my primary research question but difference across race groups. Because of interactions, some graphs are collapsed and hard to eyeball,ie., middle three groups of agecat. Would you agree?</description>
      <pubDate>Mon, 08 Jan 2018 15:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425785#M14685</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-08T15:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425787#M14686</link>
      <description>I think that the way you have it laid out above, I agree with Draycut; you should not change the column axes.  What you should change is the entire presentation.&lt;BR /&gt;&lt;BR /&gt;The reason to have a grid like this is to have the ability to compare left-to-right and up-to-down.  So up and down makes sense: you have different races, and you want to be able to see the differences between asian and white or whatever.  That's a good idea and makes perfect sense.&lt;BR /&gt;&lt;BR /&gt;However, with the ages left to right, would you want to compare the newborns with the four year olds, by weight?  I doubt it: you'd want to compare something *about* them, rather.  So chart that.  Or normalize your data, so instead of using actual weight/height, you normalize it to the 50th percentile for that age or something like that.  But better I think would be to chart what you actually expect people to be looking at here, which I don't think is just the weight/height.</description>
      <pubDate>Mon, 08 Jan 2018 15:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425787#M14686</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-01-08T15:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425788#M14687</link>
      <description>&lt;P&gt;Snoopy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why I get error below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4984 ods graphics / height=1500 width=4000;&lt;/P&gt;&lt;P&gt;4985 proc sgpanel data=r.all_cnt;&lt;/P&gt;&lt;P&gt;4986 panelby race ageyears/novarname onepanel LAYOUT=panel columns=5 ROWHEADERPOS=right&lt;/P&gt;&lt;P&gt;4986! COLHEADERPOS=bottom uniscale=row;&lt;/P&gt;&lt;P&gt;4987 series y=pr_obs x=year / group=bf lineattrs=(pattern=solid) uniscale=row;&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;76&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ATTRID, BREAK, CLUSTERWIDTH,&lt;/P&gt;&lt;P&gt;CURVELABEL, CURVELABELATTRS, CURVELABELPOS, DATALABEL, DATALABELATTRS,&lt;/P&gt;&lt;P&gt;DATALABELPOS, DISCRETEOFFSET, FILLEDOUTLINEDMARKERS, GROUP, GROUPDISPLAY,&lt;/P&gt;&lt;P&gt;GROUPORDER, LEGENDLABEL, LINEATTRS, MARKERATTRS, MARKERFILLATTRS,&lt;/P&gt;&lt;P&gt;MARKEROUTLINEATTRS, MARKERS, NAME, NOMISSINGGROUP, SMOOTHCONNECT, SPLITCHAR,&lt;/P&gt;&lt;P&gt;SPLITCHARNODROP, SPLITJUSTIFY, TIP, TIPFORMAT, TIPLABEL, TRANSPARENCY, URL.&lt;/P&gt;&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;4988 keylegend/title="BREASTFEEDING DURATION" position=bottom;&lt;/P&gt;&lt;P&gt;4989 format race race. ageyears ageyears. bf bf.;&lt;/P&gt;&lt;P&gt;4990 colaxis label='COHORT YEARS' fitpolicy=thin valuesformat=best4.0 values=(2002 to 2015 by 1);&lt;/P&gt;&lt;P&gt;4991 rowaxis label='PREVALENCE OF OBESITY' grid max=27.0;&lt;/P&gt;&lt;P&gt;4992 title "OBESITY PREVALENCE BY";&lt;/P&gt;&lt;P&gt;4993 run;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 15:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425788#M14687</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-08T15:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425789#M14688</link>
      <description>You have UNISCALE=ROW on the SERIES statement, which is wrong.</description>
      <pubDate>Mon, 08 Jan 2018 15:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425789#M14688</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-01-08T15:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425792#M14689</link>
      <description>Sorry for a confusion. This is kids' "weight and height for age percentile data" adjusted to gender. Where I defined obesity to 1 if kids percentile hits 97.7% else 0. And computed the obesity rate as: event count/n of kids in the strata (by age and race). I thought resulting data must be normalized since the source data was a normalized percentile data. isn't it?</description>
      <pubDate>Mon, 08 Jan 2018 15:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425792#M14689</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-08T15:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425795#M14690</link>
      <description>&lt;P&gt;And this is why it's helpful to&amp;nbsp;give complete information in your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're normalizing it to age percentile, then why do you want to adjust the row axes?&amp;nbsp; I think you should not alter the row axes for the different ages if it's adjusted by percentile: your chart is, correctly, showing that different age ranges have a different prevalence of&amp;nbsp;obesity.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 15:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425795#M14690</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-01-08T15:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425798#M14691</link>
      <description>Thanks snoopy. Thanks for your insight!!! Off topic. Shall I create a separate post on how to output high resolution image out of this program?</description>
      <pubDate>Mon, 08 Jan 2018 15:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425798#M14691</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-08T15:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425799#M14692</link>
      <description>Yes, if you want to ask something unrelated to the original question (as&lt;BR /&gt;that would be) please ask it in a different question. Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jan 2018 16:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425799#M14692</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-01-08T16:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425946#M14704</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132289"&gt;@Cruise&lt;/a&gt; wrote:&lt;BR /&gt;Thanks snoopy. Thanks for your insight!!! Off topic. Shall I create a separate post on how to output high resolution image out of this program?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You may want to define exactly what you mean by "high resolution image" as well.&lt;/P&gt;
&lt;P&gt;Consider the final display size and memory requirements. If you have a "requirement" for 1000 dots per inch and a 10 inch by 10 inch display that is a lot of dots potentially and may exceed the program ability to manage.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 00:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/425946#M14704</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-09T00:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgpanel x-axis with multiple scales</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/818185#M22909</link>
      <description>&lt;P&gt;It works! Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 18:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgpanel-y-axis-with-multiple-scales/m-p/818185#M22909</guid>
      <dc:creator>Yishi-</dc:creator>
      <dc:date>2022-06-14T18:31:55Z</dc:date>
    </item>
  </channel>
</rss>

