<?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: ODS graphics program problem in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/ODS-graphics-program-problem/m-p/319154#M11169</link>
    <description>&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data =stocks plots(only maxpoints=none)=fit;
model mtret=spret ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 15 Dec 2016 05:36:23 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-12-15T05:36:23Z</dc:date>
    <item>
      <title>ODS graphics program problem</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-graphics-program-problem/m-p/319150#M11168</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data sp;
infile " E:\Appmethod2016\SAS-1209\SP500.csv " dlm=',' firstobs=2;
input  date spopen sphigh splow spclose spvol spaclose;
Informat date anydtdte.;
run;

Data mt;
infile " E:\Appmethod2016\SAS-1209\Moto.csv " dlm=',' firstobs=2;
input  date mtaopen mtahigh mtalow mtaclose mtavol mtaaclose;
Informat date anydtdte.;
run;

data Stocks;
merge sp mt;
spret=100*(spaclose-lag1(spaclose))/lag1(spaclose);
mtret =100*(mtaclose-lag1(mtaclose))/lag1(mtaclose);
dow=weekday(date);
run;

proc means data= stocks mean median std skew kurt min max n maxdec=3;
var spret mtret;
run;

proc format;
value dowf
1='Sun'
2='Mon'
3='Tue'
4='Wed'
5='Thu'
6='Fri'
7='Sat';
run;

proc sort data = stocks out= a;
format dow dowf.;
by dow;
run;

proc means data = a mean median std skew kurt min max n maxdec=3;
by dow;
var spret mtret ;
run;

proc sgplot data= stocks noautolegend;
title 'S&amp;amp;P 500 Returns by Day of the Week';
format dow dowf.;
vbox spret / category=dow;
xaxis label=' ';
yaxis label='Return (%)' grid;
refline 0;
run;

proc sgplot data=stocks;
title 'S&amp;amp;P 500 and Motorola Daily Returns';
reg x=spret y=mtret;
ellipse x=spret y=mtret/ alpha =.01;
ellipse x=spret y=mtret/ alpha =.001;
xaxis label='S&amp;amp;P 500 Return (%)';
yaxis label='Motorola Return (%)';
run;

proc reg data =stocks;

model mtret= spret;

proc reg data =stocks;

model mtret=spret ;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want to get scatter plots with the fit line but the system always give me heat maps.&lt;/P&gt;&lt;P&gt;The system claims that I can use PLOTS(MAXPOINTS= ) to solve it, but where I should insert it.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 04:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-graphics-program-problem/m-p/319150#M11168</guid>
      <dc:creator>karen8169</dc:creator>
      <dc:date>2016-12-15T04:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS graphics program problem</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-graphics-program-problem/m-p/319154#M11169</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data =stocks plots(only maxpoints=none)=fit;
model mtret=spret ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Dec 2016 05:36:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-graphics-program-problem/m-p/319154#M11169</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-12-15T05:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: ODS graphics program problem</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-graphics-program-problem/m-p/319225#M11172</link>
      <description>&lt;P&gt;Read the article &lt;A href="http://blogs.sas.com/content/iml/2013/05/28/heatmaps-in-re.html" target="_self"&gt;"New heat maps in the REG procedure."&lt;/A&gt;&amp;nbsp; At the end it describes how to control whether the procedure uses heat maps or scatter plots. To quote from the article:&lt;/P&gt;
&lt;P&gt;"In SAS 12.1 the MAXPOINTS= option accepts two arguments, and the default values are MAXPOINTS=5000&amp;nbsp;150000. The first argument specifies the data size for which heat maps are used instead of scatter plots. The &lt;A href="http://support.sas.com/documentation/cdl/en/statug/65328/HTML/default/viewer.htm#statug_reg_syntax01.htmhttp://support.sas.com/documentation/cdl/en/statug/65328/HTML/default/viewer.htm#statug_reg_syntax01.htm" target="_blank"&gt;documentation of the MAXPOINTS= option&lt;/A&gt; states that "when the number of points exceeds [the first number] but does not exceed [the second number] divided by the number of independent variables, heat maps are displayed instead of scatter plots for the fit and residual plots." In other words, if you have a regression with &lt;EM&gt;k&lt;/EM&gt; explanatory variables, heat maps are used when the number of observations is between 5,000 and 150,000/&lt;EM&gt;k&lt;/EM&gt;. Of course, you can use the MAXPOINTS= option to change either or both of those values."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 10:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-graphics-program-problem/m-p/319225#M11172</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-15T10:44:14Z</dc:date>
    </item>
  </channel>
</rss>

