<?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: SGPlot formatting questions in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178847#M45656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Use an explicit format for your group variable&lt;/P&gt;&lt;P&gt;2) Use Unicode character '00B2' which represents superscript 2 (you might be able to cut and paste it from the code below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;call streaminit(76576);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;do group = 121212121212211, 63565345534556;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do x = 1 to 12;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = sum(y, rand('Normal'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;title;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sgplot data=test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format group best20.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;series x=x y=y / group=group;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;yaxis label="Y (m²)";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SGPlot3.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6471_SGPlot3.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 16:02:35 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2014-05-30T16:02:35Z</dc:date>
    <item>
      <title>SGPlot formatting questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178846#M45655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am new to the SAS forum.&amp;nbsp; I am looking for some assistance in formatting a couple of scatterplots for my M.Sc thesis.&amp;nbsp; I am using SAS 9,3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the scatterplot and trendlines in Proc SGPlot, however there are two minor issues that I need to resolve&lt;/P&gt;&lt;P&gt;1) The data is grouped, and in the legend that is created the group names (which are numbers) get truncated using scientific notation.&amp;nbsp; Is there a way to get SG plot to show the entire number in the Legend?&amp;nbsp; The entire number is needed for the legend to make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) For the Axis titles my units are in Square meters.&amp;nbsp; Is it possible to incorporate superscripts into the axis titles?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any feedback I can get.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 15:34:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178846#M45655</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2014-05-30T15:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot formatting questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178847#M45656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Use an explicit format for your group variable&lt;/P&gt;&lt;P&gt;2) Use Unicode character '00B2' which represents superscript 2 (you might be able to cut and paste it from the code below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;call streaminit(76576);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;do group = 121212121212211, 63565345534556;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do x = 1 to 12;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = sum(y, rand('Normal'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;title;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sgplot data=test;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format group best20.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;series x=x y=y / group=group;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;yaxis label="Y (m²)";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SGPlot3.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6471_SGPlot3.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 16:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178847#M45656</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-05-30T16:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot formatting questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178848#M45657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the prompt response,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attempted the "do" statement and I think my inexperience is showing.&amp;nbsp; When I included a do statement the log stated that I needed an end statement as well. Here is the code I was using,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc nlin data=Aspen&amp;nbsp; NLINMEASURES plots(stats=all)=(diagnostics) ;&lt;/P&gt;&lt;P&gt;ods rtf file="D:\Chapter2DataTables\AspenPowerFunction.rtf";&lt;/P&gt;&lt;P&gt;&amp;nbsp; parms a=30 b=0.4;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model Y=a*X**b;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; by polygon;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do group = 6796103, 6886289; &lt;STRONG&gt;tried to add the do statement here...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Output Out=Chapter2.AspenNlinOut Predicted=pred;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Title test;&lt;/P&gt;&lt;P&gt;proc sgplot data=Chapter2.AspenNLinOUt;&lt;/P&gt;&lt;P&gt;Scatter x=LiDARGapArea y=ExpandedGapArea / group=Polygon;&lt;/P&gt;&lt;P&gt;yaxis label='Expanded Gap Area (m²)';&lt;/P&gt;&lt;P&gt;xaxis label='LiDAR Gap Area (m²)';&lt;/P&gt;&lt;P&gt;series x=LiDARGapArea y=Pred / group=Polygon;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 16:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178848#M45657</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2014-05-30T16:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot formatting questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178849#M45658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first part of my code was simply there to create example data for plotting, you can ignore it. All you need to do is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sgplot data=Chapter2AspenNLinOut;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;scatter x=LiDARGapArea y=ExpandedGapArea / group=Polygon;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;series x=LiDARGapArea y=Pred / group=Polygon;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;yaxis label='Expanded Gap Area (m²)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;xaxis label='LiDAR Gap Area (m²)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format Polygon best20.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 17:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178849#M45658</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-05-30T17:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot formatting questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178850#M45659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The format statement solved it.&amp;nbsp; Thanks very much for the assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 17:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178850#M45659</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2014-05-30T17:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot formatting questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178851#M45660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for the assistance before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been asked to modify the scatter plots a little more.&amp;nbsp; The current plots create an output which is distinguished only by color.&amp;nbsp; I have been asked to change up one set of data points so that the markers and series line are different (maybe change them to closed circles and a dashed line).&amp;nbsp; With the data sets being separated using the group statements I am not sure how to modify them to change only one set of markers.&amp;nbsp; Any ideas would be appreciated.&amp;nbsp; I haven't seen anything in the other posts in this forum yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=Chapter2.AspenNLinOUt;&lt;/P&gt;&lt;P&gt;Scatter x=LiDARGapArea y=ExpandedGapArea / group=Polygon;&lt;/P&gt;&lt;P&gt;yaxis label='Expanded Gap Area (m²)';&lt;/P&gt;&lt;P&gt;xaxis label='LiDAR Gap Area (m²)';&lt;/P&gt;&lt;P&gt;series x=LiDARGapArea y=Pred / group=Polygon markerattrs=;&lt;/P&gt;&lt;P&gt;format Polygon best20.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2014 16:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178851#M45660</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2014-06-29T16:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot formatting questions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178852#M45661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should change the style associated with your ODS destination. By default the style is HTMLBLUE which only changes colors among the first 12 groups. The alternate style HTMLBLUECML (CML: Color-Marker-Line) changes every aspect from one group to the other. Add a statement such as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODS HTML style=HTMLBLUECML;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;before proc sgplot to request the alternate style. Also, remove the &lt;STRONG&gt;markerattrs=&lt;/STRONG&gt; request from the series statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jun 2014 17:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SGPlot-formatting-questions/m-p/178852#M45661</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-06-29T17:38:34Z</dc:date>
    </item>
  </channel>
</rss>

