<?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: PLOTTING GRAPH FOR DATA CONTAINING MANY OBSERVATIONS in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/507995#M17298</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello our esteemed advisers and community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am seeking assistance about plotting graph for large data sets. I have very big data set with over 100,000,000 observations but I have tried plotting these calibration graphs and SAS returns an &lt;STRONG&gt;error of maximum observations exceeded&lt;/STRONG&gt;. I tried using the option of changing maximum observations so that I can plot but still I cannot draw beyond 2,000,000 observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will be glad to be advised on how to handle this problem.&lt;/P&gt;</description>
    <pubDate>Sat, 27 Oct 2018 15:08:27 GMT</pubDate>
    <dc:creator>DavidsM</dc:creator>
    <dc:date>2018-10-27T15:08:27Z</dc:date>
    <item>
      <title>RE: PLOTTING GRAPH FOR DATA CONTAINING MANY OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/507995#M17298</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello our esteemed advisers and community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am seeking assistance about plotting graph for large data sets. I have very big data set with over 100,000,000 observations but I have tried plotting these calibration graphs and SAS returns an &lt;STRONG&gt;error of maximum observations exceeded&lt;/STRONG&gt;. I tried using the option of changing maximum observations so that I can plot but still I cannot draw beyond 2,000,000 observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will be glad to be advised on how to handle this problem.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Oct 2018 15:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/507995#M17298</guid>
      <dc:creator>DavidsM</dc:creator>
      <dc:date>2018-10-27T15:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: RE: PLOTTING GRAPH FOR DATA CONTAINING MANY OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/508009#M17300</link>
      <description>&lt;P&gt;With that many observations, you should probably use a HEATMAP instead of a SCATTER plot. Compare the output from these two outputs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.heart;
heatmap x=weight y=height;
run;

proc sgplot data=sashelp.heart;
scatter x=weight y=height;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The HEATMAP statement will process the data in a way that will greatly reduce the actual number of observations processed by the rendering code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Sat, 27 Oct 2018 18:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/508009#M17300</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-10-27T18:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: RE: PLOTTING GRAPH FOR DATA CONTAINING MANY OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/508097#M17303</link>
      <description>&lt;P&gt;Or check&amp;nbsp; PROC KDE + BIVAR statement.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 10:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/508097#M17303</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-28T10:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: RE: PLOTTING GRAPH FOR DATA CONTAINING MANY OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/508183#M17305</link>
      <description>&lt;P&gt;Hello my advisors,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Heat map and scatter also return the same messages of exceeded 2000000 observations. I have tried&amp;nbsp;&lt;SPAN&gt;PROC KDE + BIVAR statement and I says out of memory but the procedure had started running.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This out of memory problem has also prevented Heat map approach.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will be glad for additional advise.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 22:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/508183#M17305</guid>
      <dc:creator>DavidsM</dc:creator>
      <dc:date>2018-10-28T22:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: RE: PLOTTING GRAPH FOR DATA CONTAINING MANY OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/508316#M17306</link>
      <description>&lt;P&gt;Could you make your SAS session has more memory by options -memsize 0&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc kde data=octane;
bivar Rater Customer / plots=CONTOUR;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or use OUT= save the dataset and plot it later.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;
proc kde data=octane;
bivar Rater Customer / out=want;
run;
ods select all;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/508316#M17306</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-29T12:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: RE: PLOTTING GRAPH FOR DATA CONTAINING MANY OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/508999#M17319</link>
      <description>&lt;P&gt;Thank you Ksharp for the assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The procedure below works and I have been able to draw one of the graphs from a large dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;kde&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;octane&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN&gt; bivar Rater Customer &lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;&lt;SPAN&gt; plots&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;CONTOUR&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is one more assitance am requesting you to help me.&amp;nbsp; The graph produced has a black back ground and I would like to change the back ground to other colors like white and make the plotted points clear. And also if possible place a line at 45 angle to indicate the straight line for a perfect calibration so that it clearly shows the devaition from the line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the output graph on this reply, I request you to check it and advise me on how to improve its appearance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will be glad if am assisted to make it look better.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 04:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/508999#M17319</guid>
      <dc:creator>DavidsM</dc:creator>
      <dc:date>2018-10-31T04:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: RE: PLOTTING GRAPH FOR DATA CONTAINING MANY OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/509088#M17323</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would not like to download DOC file from website due to virus.&lt;/P&gt;
&lt;P&gt;Check PROC KDE's documentation. Maybe you could find an option you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;&amp;nbsp;if possible place a line at 45 angle to indicate the straight line for a perfect calibration so that it clearly shows the devaition from the line. "&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would suggest save the output as a dataset and plot it with PROC SGPLOT + LINEPARM statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods trace on;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc kde......&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods trace off;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;could give you the NAME of output. and save it as a dataset like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ods output xxxxxx=xxxxxxx;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc kde..............&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 12:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/509088#M17323</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-31T12:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: RE: PLOTTING GRAPH FOR DATA CONTAINING MANY OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/512172#M17409</link>
      <description>&lt;P&gt;Although this one has been solved, I wanted to mention another solution.&lt;/P&gt;
&lt;P&gt;You could use SAS/Graph Proc Gplot - it doesn't seem to have a limit to the number of observations plotted.&lt;/P&gt;
&lt;P&gt;For example, I created a random dataset with 100,000,000 observations, and used semi-transparents points as my plot marker, and came up with the following plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran this on a Linux machine, and lifted the default SAS memory size limit by starting the SAS session with "sas -memsize 0 &amp;amp;" ... and it took, umm, "quite a while" to run ...&amp;nbsp; cpu time 3:55:37.78 (but it &lt;STRONG&gt;did&lt;/STRONG&gt; run!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_data (keep = x y);&lt;BR /&gt; seed1=12345;&lt;BR /&gt; seed2=98765;&lt;BR /&gt; do count=1 to 100000000;&lt;BR /&gt; call rannor(seed1,x);&lt;BR /&gt; call rannor(seed2,y);&lt;BR /&gt; output;&lt;BR /&gt; end;&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;symbol1 value=point interpol=none color=A00000033;&lt;BR /&gt; proc gplot data=my_data;&lt;BR /&gt; plot y*x=1;&lt;BR /&gt; run;&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="plot_100000000.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24817i7D0E34CCE2A6B45E/image-size/large?v=v2&amp;amp;px=999" role="button" title="plot_100000000.png" alt="plot_100000000.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 12:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/512172#M17409</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2018-11-12T12:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: RE: PLOTTING GRAPH FOR DATA CONTAINING MANY OBSERVATIONS</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/512252#M17414</link>
      <description>&lt;P&gt;Just to see what is going on, I ran Robert's data with SGPLOT, using some options to allow larger data (&lt;SPAN&gt;maxobs=100000000)&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;The SCATTER plot still did not finish due to lack of Java memory.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the HEATMAP did run with default SAS startup settings and the graph completed in 02:20:63 of real time on a Windows box.&amp;nbsp; The HeatMap is a better visual, as you can actually see the distribution of the data instead of a big black blob. :-).&amp;nbsp; Binning is done on the server, and only the resulting bins are sent to the Java renderer for drawing.&amp;nbsp; I used 320x240 bins as there is no point in creating bins &amp;lt; a pixel.&amp;nbsp; This gives 2x2 pixel bins.&amp;nbsp; Image attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_data (keep = x y);&lt;BR /&gt;seed1=12345;&lt;BR /&gt;seed2=98765;&lt;BR /&gt;do count=1 to 100000000;&lt;BR /&gt;call rannor(seed1,x);&lt;BR /&gt;call rannor(seed2,y);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods html close;&lt;BR /&gt;ods listing gpath='C:\temp';&lt;BR /&gt;ods graphics / maxobs=100000000 NXYBINSMAX=80000 imagename='BigData';&lt;BR /&gt;proc sgplot data=my_data;&lt;BR /&gt;heatmap x=x y=y / nxbins=320 nybins=240 colormodel=(green yellow red);&lt;BR /&gt;run;&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="BigData.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24827i970D7275E50F3480/image-size/large?v=v2&amp;amp;px=999" role="button" title="BigData.png" alt="BigData.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 18:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/RE-PLOTTING-GRAPH-FOR-DATA-CONTAINING-MANY-OBSERVATIONS/m-p/512252#M17414</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-11-12T18:36:10Z</dc:date>
    </item>
  </channel>
</rss>

