<?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: Creating SAS scatter plot graph with many labels that can be adjusted manually in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914929#M24310</link>
    <description>&lt;P&gt;On the ODS GRAPHICS statement, there is an option called LABELPOSITION that contains two fitting algorithms: GREEDY and SA (simulated annealing). The default is GREEDY, which works pretty well. However, if you have cases where GREEDY does not produce what you want, try SA. The graph might take a little longer to produce, but it might give you better results in some dense cases.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 19:47:02 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2024-02-07T19:47:02Z</dc:date>
    <item>
      <title>Creating SAS scatter plot graph with many labels that can be adjusted manually</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914721#M24303</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to find the posibility to create a scatter plot graph with many labels that can be adjusted manually. I know that using SAS Graph Template Language we can create a scatter plot with auto adjustment on the labels, and I'm quite pleased with this, but just in case if the labels are still too closed and overlapped I would have the capability to adjust it manually too. Is it possible to do this? I heard activeX graph will be deprecated and ODS Graphics Editor too.&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the sample graph&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="g2_try.png" style="width: 506px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93309iF5687C1120279505/image-dimensions/506x547?v=v2" width="506" height="547" role="button" title="g2_try.png" alt="g2_try.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 16:22:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914721#M24303</guid>
      <dc:creator>Esterina</dc:creator>
      <dc:date>2024-02-06T16:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS scatter plot graph with many labels that can be adjusted manually</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914817#M24307</link>
      <description>&lt;P&gt;Try datalabel= option, that would avoid to overlap the two closed label .&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
scatter x=weight y=height/group=sex datalabel=name;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1707279935021.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93321iF73119D068DC9C44/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1707279935021.png" alt="Ksharp_0-1707279935021.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see there is no overlapped label , sas just do it for you .&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 04:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914817#M24307</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-02-07T04:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS scatter plot graph with many labels that can be adjusted manually</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914929#M24310</link>
      <description>&lt;P&gt;On the ODS GRAPHICS statement, there is an option called LABELPOSITION that contains two fitting algorithms: GREEDY and SA (simulated annealing). The default is GREEDY, which works pretty well. However, if you have cases where GREEDY does not produce what you want, try SA. The graph might take a little longer to produce, but it might give you better results in some dense cases.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 19:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914929#M24310</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-02-07T19:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS scatter plot graph with many labels that can be adjusted manually</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914980#M24312</link>
      <description>&lt;P&gt;Thanks! I know this one, but I'm looking a way to make it interactive, that we can adjust the labels manually by drag and drop.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 23:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914980#M24312</guid>
      <dc:creator>Esterina</dc:creator>
      <dc:date>2024-02-07T23:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS scatter plot graph with many labels that can be adjusted manually</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914981#M24313</link>
      <description>&lt;P&gt;Thanks Dan! that's good to know. But I'm looking a way to make it interactive that I can adjust the labels manually after that by drag and drop.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 23:43:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914981#M24313</guid>
      <dc:creator>Esterina</dc:creator>
      <dc:date>2024-02-07T23:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS scatter plot graph with many labels that can be adjusted manually</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914984#M24314</link>
      <description>&lt;P&gt;I'm not sure where the final destination is for your graph, but here is one way to do it. First, generate your output using the ODS WORD destination. Here is an example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
ods word file="class.docx";
ods graphics / outputfmt=svg;
proc sgplot data=sashelp.class;
scatter x=weight y=height / datalabel=name;
run;
ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Next, open the file in Microsoft Word. Right-click on the graph and select, "Convert to Shape". You can then edit and move your labels. Then, deselect the graph, right-click on it, and select, "Save as Picture". This image will external save your edits as a PNG image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 00:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/914984#M24314</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-02-08T00:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating SAS scatter plot graph with many labels that can be adjusted manually</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/915111#M24315</link>
      <description>oh.. this is so great Dan! Thanks! But my graph is squished, I think because it can't show the original size, so then I need to adjust the outlook? because currently I just ods html and device= gif. Do you have any suggestion to make my graph is like the original size or it is not possible?</description>
      <pubDate>Thu, 08 Feb 2024 16:26:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-SAS-scatter-plot-graph-with-many-labels-that-can-be/m-p/915111#M24315</guid>
      <dc:creator>Esterina</dc:creator>
      <dc:date>2024-02-08T16:26:25Z</dc:date>
    </item>
  </channel>
</rss>

