<?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: Bubble plot legend with sgmap in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bubble-plot-legend-with-sgmap/m-p/898708#M43844</link>
    <description>Got it! I'll keep it in mind for the future. The code is correct, colorresponse and colormodel don't work because I'm using a release where they probably weren't added yet, since in the link with the example it's written that release 9.4M7 is needed</description>
    <pubDate>Mon, 16 Oct 2023 08:18:58 GMT</pubDate>
    <dc:creator>veronicasalmaso</dc:creator>
    <dc:date>2023-10-16T08:18:58Z</dc:date>
    <item>
      <title>Bubble plot legend with sgmap</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bubble-plot-legend-with-sgmap/m-p/897952#M43811</link>
      <description>&lt;P&gt;Hello SAS users,&lt;/P&gt;&lt;P&gt;I'm trying to change the colour of this bubble plot to have different colors for different sizes and add a label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code for the plot:&lt;/P&gt;&lt;PRE&gt;proc sgmap plotdata=belluno2;
openstreetmap;
where lon &amp;gt; 10.435428 and lat &amp;gt; 44.847916 and lat &amp;lt; 46.731138;
bubble x=lon y=lat size=f /group=source bradiusmin=0.2 fillattrs=(transparency=.4); 
keylegend;
run;&lt;/PRE&gt;&lt;P&gt;And this is the output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img0.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88740i4120A1FE392E07BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="img0.png" alt="img0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My goal is to replicate/have something similar to the graph here below (made with R), where the color gets lighter when the frequency gets bigger and a label where i can see the size of the bubble beside the frequency.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="5f47052b-4815-4d4e-9246-c4ea91180afc.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88741iC22E64E51AFD1B84/image-size/large?v=v2&amp;amp;px=999" role="button" title="5f47052b-4815-4d4e-9246-c4ea91180afc.png" alt="5f47052b-4815-4d4e-9246-c4ea91180afc.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 13:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bubble-plot-legend-with-sgmap/m-p/897952#M43811</guid>
      <dc:creator>veronicasalmaso</dc:creator>
      <dc:date>2023-10-10T13:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble plot legend with sgmap</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bubble-plot-legend-with-sgmap/m-p/897972#M43813</link>
      <description>&lt;P&gt;Changing color with the value of a response variable is amazingly enough COLORESPONSE coupled with COLORMODEL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is an example here: &lt;A href="https://support.sas.com/kb/68/115.html" target="_blank"&gt;https://support.sas.com/kb/68/115.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;that shows using a continuous bar with the meaning of the response color&lt;/P&gt;
&lt;P&gt;Since you apparently want a darker color associated with the smaller value of your response variable then you might want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;colormodel=(darkblue lightblue)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend the GRADLEGEND (gradient legend) as it shows a continuous value so people can interpret color shades a bit more accurately than discrete bubbles&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 14:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bubble-plot-legend-with-sgmap/m-p/897972#M43813</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-10T14:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble plot legend with sgmap</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bubble-plot-legend-with-sgmap/m-p/898252#M43823</link>
      <description>&lt;P&gt;When I enter the code for colorresponse and colormodel, the following error apperars:&lt;BR /&gt;&lt;BR /&gt;Syntax error, expecting one of the following: ;, BRADIUSMAX, BRADIUSMIN, CM, DATALABEL, DATALABELATTRS,&lt;BR /&gt;DATALABELPOS, FILL, FILLATTRS, GROUP, IN, LEGENDLABEL, MM, NAME, NOFILL, NOMISSINGGROUP, OUTLINE, PCT, PT, PX,&lt;BR /&gt;TRANSPARENCY.&lt;BR /&gt;&lt;BR /&gt;I'm using &lt;SPAN&gt;SAS&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;9.4M6 release, is there anything I can try for this release?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 07:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bubble-plot-legend-with-sgmap/m-p/898252#M43823</guid>
      <dc:creator>veronicasalmaso</dc:creator>
      <dc:date>2023-10-12T07:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble plot legend with sgmap</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bubble-plot-legend-with-sgmap/m-p/898330#M43828</link>
      <description>&lt;P&gt;&lt;STRONG&gt;ANY time &lt;/STRONG&gt;that you have a question about an error please copy the code and all the warnings, notes, errors and messages from the log for the step with the error. On the forum open a text box using the &amp;lt;/&amp;gt; icon above the message window and paste the text. The entire procedure or data step, not just the line that causes the error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The text box is important because frequently SAS provides diagnostic characters indicating where the problem was detected and the main message windows in the forum software will reformat pasted text reducing the usefulness of the diagnostics. The entire procedure or data step because the cause might be a missing ; on a previous statement, missing a ( or ) or similar elsewhere in the code.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 14:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bubble-plot-legend-with-sgmap/m-p/898330#M43828</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-12T14:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble plot legend with sgmap</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bubble-plot-legend-with-sgmap/m-p/898708#M43844</link>
      <description>Got it! I'll keep it in mind for the future. The code is correct, colorresponse and colormodel don't work because I'm using a release where they probably weren't added yet, since in the link with the example it's written that release 9.4M7 is needed</description>
      <pubDate>Mon, 16 Oct 2023 08:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Bubble-plot-legend-with-sgmap/m-p/898708#M43844</guid>
      <dc:creator>veronicasalmaso</dc:creator>
      <dc:date>2023-10-16T08:18:58Z</dc:date>
    </item>
  </channel>
</rss>

