<?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: Using proc gplot to display proportional symbols in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Using-proc-gplot-to-display-proportional-symbols/m-p/112346#M4243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's another alternative.&amp;nbsp; You could make the gplot markers really small/invisible points (or even value=none), and then annotate diamond font characters on top of them.&amp;nbsp; This way, you wouldn't have to designate certain size "buckets" and map them to a set number of gplot symbols - the annotated diamonds could be continuously sized directly based on their numeric values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;do i=1 to 100;&lt;BR /&gt; x_var=ranuni(9207523);&lt;BR /&gt; y_var=ranuni(2835);&lt;BR /&gt; if ranuni(92305)&amp;lt;.5 then color_var=1;&lt;BR /&gt; else color_var=2;&lt;BR /&gt; size_var=ranuni(90237);&lt;BR /&gt; output;&lt;BR /&gt;end;&lt;BR /&gt;drop i;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data my_anno; set test;&lt;BR /&gt;length function color $8;&lt;BR /&gt;xsys='2'; ysys='2'; hsys='3';&lt;BR /&gt;function='label'; style='albany amt/unicode'; text='2666'x;&lt;BR /&gt;x=x_var;&lt;BR /&gt;y=y_var;&lt;BR /&gt;size=2+size_var*8;&amp;nbsp;&amp;nbsp; /* you could tweak this as needed */&lt;BR /&gt;if color_var=1 then color='red';&lt;BR /&gt;else color='blue';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 value=point color=blue;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc gplot data=test anno=my_anno;&lt;BR /&gt;plot y_var*x_var=1;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2012 12:48:26 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2012-05-14T12:48:26Z</dc:date>
    <item>
      <title>Using proc gplot to display proportional symbols</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-proc-gplot-to-display-proportional-symbols/m-p/112344#M4241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;Here is the type of data and plot I am making.&amp;nbsp; What I would like to do, is make the size of the plotting symbols (diamonds) proportional to variable ‘n’ in the dataset.&amp;nbsp; In the real dataset there are about 100 rows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone could give me some assistance on this it would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;Data all;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Input os_2y op_percent treatment2 n;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;Cards;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .70 .30 1 540&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .85 1 2 42&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .6 .55 1 95&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #1f497d;"&gt;Run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;sort&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=all; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt; op_percent; &lt;/SPAN&gt;&lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;goptions&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;reset&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;all&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;htext&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;axis1&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;width&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;offset&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;pct&lt;/SPAN&gt; &lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;pct&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;label&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: purple; background: none repeat scroll 0% 0% white;"&gt;'Operable Patients(%)'&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;order&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;to&lt;/SPAN&gt; &lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;axis2&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;width&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;label&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;angle&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;90&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: purple; background: none repeat scroll 0% 0% white;"&gt;'Overall Survival at 2 Years'&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;order&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;to&lt;/SPAN&gt; &lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;.1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;symbol1&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=diamondfilled &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;height&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=red;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;symbol2&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=diamondfilled &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;height&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=blue;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;symbol3&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;width&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;interpol&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=sm90 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=dot &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;height&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;color&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=black;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: green; background: none repeat scroll 0% 0% white;"&gt;*symbol3 width=3 interpol=RLCLM95 value=dot height=3 color=black;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;gplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=all;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;plot&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt; os_2y*op_percent = treatment2 /&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;haxis&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=axis1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;vaxis&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;=axis2 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background: none repeat scroll 0% 0% white;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt; treatment &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: teal; background: none repeat scroll 0% 0% white;"&gt;$trt.&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 17:23:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-proc-gplot-to-display-proportional-symbols/m-p/112344#M4241</guid>
      <dc:creator>cypher85</dc:creator>
      <dc:date>2012-05-11T17:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc gplot to display proportional symbols</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-proc-gplot-to-display-proportional-symbols/m-p/112345#M4242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ... here's one idea for creating symbols whose size varies by the level of a variable (N)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you can adapt the idea to your data and plot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;* fake data;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;data test;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;do i=1 to 100;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; x = ceil(100*ranuni(999));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; y = ceil(100*ranuni(999));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; z = rantbl(999,.5);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; n = ceil(1000*ranuni(999));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;drop i;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;* put variable N into 10 groups;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;proc rank data=test out=ranks groups=10;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;var n;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;ranks nr;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;* change variable Z to 1 through 10 within old Z=1 and 11 through 20 within old group Z=2;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;data ranks;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;set ranks;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;z = (z-1)*10 + nr + 1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;* write 20 symbol statements ... 10 red, 10 blue ... size starts at 1, increases to 5.5 within each color group;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;filename sym temp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;data _null_;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;array c(2) $4 _temporary_ ('red' 'blue');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;file sym;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;do i=1 to 2;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; s = 0.5;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;do j=1 to 10;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; k = (i-1)*10 + j;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; s + 0.5;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; put "symbol" k "f='wingdings' v='75'x c=" c(i) "h=" s "pct;";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;goptions reset=all ftext='calibri' htext=2.5 gunit=pct;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;* include the symbols;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;%include sym / source2;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;* white space;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;title1 ls=2;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;title2 a=90 ls=2;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;title3 a=-90 ls=2;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;* use new variable Z in the plots;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;proc gplot data=ranks;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;plot y*x=z / nolegend noframe;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11888i7D93982CE4E743EC/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="proportional_symbols.png" title="proportional_symbols.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2012 06:38:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-proc-gplot-to-display-proportional-symbols/m-p/112345#M4242</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2012-05-12T06:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc gplot to display proportional symbols</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-proc-gplot-to-display-proportional-symbols/m-p/112346#M4243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's another alternative.&amp;nbsp; You could make the gplot markers really small/invisible points (or even value=none), and then annotate diamond font characters on top of them.&amp;nbsp; This way, you wouldn't have to designate certain size "buckets" and map them to a set number of gplot symbols - the annotated diamonds could be continuously sized directly based on their numeric values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;do i=1 to 100;&lt;BR /&gt; x_var=ranuni(9207523);&lt;BR /&gt; y_var=ranuni(2835);&lt;BR /&gt; if ranuni(92305)&amp;lt;.5 then color_var=1;&lt;BR /&gt; else color_var=2;&lt;BR /&gt; size_var=ranuni(90237);&lt;BR /&gt; output;&lt;BR /&gt;end;&lt;BR /&gt;drop i;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data my_anno; set test;&lt;BR /&gt;length function color $8;&lt;BR /&gt;xsys='2'; ysys='2'; hsys='3';&lt;BR /&gt;function='label'; style='albany amt/unicode'; text='2666'x;&lt;BR /&gt;x=x_var;&lt;BR /&gt;y=y_var;&lt;BR /&gt;size=2+size_var*8;&amp;nbsp;&amp;nbsp; /* you could tweak this as needed */&lt;BR /&gt;if color_var=1 then color='red';&lt;BR /&gt;else color='blue';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 value=point color=blue;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc gplot data=test anno=my_anno;&lt;BR /&gt;plot y_var*x_var=1;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 12:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-proc-gplot-to-display-proportional-symbols/m-p/112346#M4243</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-05-14T12:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc gplot to display proportional symbols</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Using-proc-gplot-to-display-proportional-symbols/m-p/112347#M4244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ... I like Robert's idea more than mine since it does not require you to do much modification of your original SAS code.&amp;nbsp; Annotate gives you a lot of control over the size of the plot symbols via the data step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 17:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Using-proc-gplot-to-display-proportional-symbols/m-p/112347#M4244</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2012-05-15T17:33:47Z</dc:date>
    </item>
  </channel>
</rss>

