<?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: INSET vs KEYLEGEND in PROC SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/INSET-vs-KEYLEGEND-in-PROC-SGPANEL/m-p/705998#M20809</link>
    <description>&lt;P&gt;An inset is used to add text to the plot. For example, on a histogram, you might want to add an inset that includes the text "Mean = 5.2" and "Standard Deviation 8.9".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The KEYLEGEND statement is used to identify graphical elements of the plot. It shows things like markers and lines, and identifies the categories associated with colors. It is used when you are overlaying multiple graph elements (scatter plots, series plots, band plots,....) but only you want the legend to show a few of the elements because the others are obvious from context or from explanatory text in the document. To include only some elements in the legend, use NAME= option to name itemd and then refer to those names in the KEYLEGEND statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The doc has examples of both. &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p09rkofi5voum3n121u57fp2cdi6.htm&amp;amp;locale=en#p09rkofi5voum3n121u57fp2cdi6" target="_self"&gt;Here is a doc example for KEYLEGEND.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=n19gxtzyuf79t3n16g5v26b73ckv.htm&amp;amp;locale=en#n1e9nkst4ozgbtn1myo0g4do40ny" target="_self"&gt;Here is a doc example for INSET.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2020 12:15:51 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-12-15T12:15:51Z</dc:date>
    <item>
      <title>INSET vs KEYLEGEND in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/INSET-vs-KEYLEGEND-in-PROC-SGPANEL/m-p/705956#M20808</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a more conceptual question to ask--what exactly is the difference between INSET statement and KEYLEGEND statement?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a legend outside of the individual graphs, but on the same panel. I think INSET could be utilized, but I saw that KEYLEGEND statement was available. What is the difference? Does it depend on what I want to do?&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a note, I am trying to create a legend that displays 'varname1 = Variable Name 1,' but I also want to know on a more fundamental level the differences.&lt;/P&gt;&lt;P&gt;Thanks y'all&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 08:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/INSET-vs-KEYLEGEND-in-PROC-SGPANEL/m-p/705956#M20808</guid>
      <dc:creator>GallagherML</dc:creator>
      <dc:date>2020-12-15T08:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: INSET vs KEYLEGEND in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/INSET-vs-KEYLEGEND-in-PROC-SGPANEL/m-p/705998#M20809</link>
      <description>&lt;P&gt;An inset is used to add text to the plot. For example, on a histogram, you might want to add an inset that includes the text "Mean = 5.2" and "Standard Deviation 8.9".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The KEYLEGEND statement is used to identify graphical elements of the plot. It shows things like markers and lines, and identifies the categories associated with colors. It is used when you are overlaying multiple graph elements (scatter plots, series plots, band plots,....) but only you want the legend to show a few of the elements because the others are obvious from context or from explanatory text in the document. To include only some elements in the legend, use NAME= option to name itemd and then refer to those names in the KEYLEGEND statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The doc has examples of both. &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p09rkofi5voum3n121u57fp2cdi6.htm&amp;amp;locale=en#p09rkofi5voum3n121u57fp2cdi6" target="_self"&gt;Here is a doc example for KEYLEGEND.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=n19gxtzyuf79t3n16g5v26b73ckv.htm&amp;amp;locale=en#n1e9nkst4ozgbtn1myo0g4do40ny" target="_self"&gt;Here is a doc example for INSET.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 12:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/INSET-vs-KEYLEGEND-in-PROC-SGPANEL/m-p/705998#M20809</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-12-15T12:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: INSET vs KEYLEGEND in PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/INSET-vs-KEYLEGEND-in-PROC-SGPANEL/m-p/709000#M20841</link>
      <description>&lt;P&gt;Do you have additional questions on this topic? If not, you can close the thread by marking a correct answer.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 13:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/INSET-vs-KEYLEGEND-in-PROC-SGPANEL/m-p/709000#M20841</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-01-01T13:07:17Z</dc:date>
    </item>
  </channel>
</rss>

