<?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: proc gplot: add existing attribute as text box to graph in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-gplot-add-existing-attribute-as-text-box-to-graph/m-p/594081#M170617</link>
    <description>&lt;P&gt;In PROC GPLOT, you would need to use the ANNOTATE facility to add text or a box to a graph&lt;/P&gt;
&lt;P&gt;See:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=graphref&amp;amp;docsetTarget=p1b1bzzuf7gdwxn1ebs5dyakg3ih.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=graphref&amp;amp;docsetTarget=p1b1bzzuf7gdwxn1ebs5dyakg3ih.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might be better off using PROC SGPLOT to do your plotting (it's a newer procedure with lots of nice features), in which case you can add text more easily using the INSET or TEXT statements.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p073bl97jzadkmn15lhq58yiy2uh.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p073bl97jzadkmn15lhq58yiy2uh.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2019 12:38:50 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-10-04T12:38:50Z</dc:date>
    <item>
      <title>proc gplot: add existing attribute as text box to graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-gplot-add-existing-attribute-as-text-box-to-graph/m-p/594077#M170616</link>
      <description>&lt;P&gt;When making a graph through gplot, is there a way to add extra information as text to your graph, but the info is predefined and should be gathered from your data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now do the following, and would like for the first graph to have a text box somewhere (preferably top right corner) with "flag = 0" and with "flag = 1" for the last two graphs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data digits;
input ID $1. digit observed expected;
datalines;
A 1 33.3 33.3
A 2 33.3 33.3
A 3 33.3 33.3
B 1 25 33.3
B 2 75 33.3
B 3 0 33.3
C 1 45 33.3
C 2 45 33.3
C 3 10 33.3
;run;

data attribute;
input ID $1. flag;
datalines;
A 0
B 1
C 1
;

proc gplot data=digits;
plot expected*digit
observed*digit
/ overlay legend vref=0 ;
by ID;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Oct 2019 12:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-gplot-add-existing-attribute-as-text-box-to-graph/m-p/594077#M170616</guid>
      <dc:creator>SarahDew</dc:creator>
      <dc:date>2019-10-04T12:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc gplot: add existing attribute as text box to graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-gplot-add-existing-attribute-as-text-box-to-graph/m-p/594081#M170617</link>
      <description>&lt;P&gt;In PROC GPLOT, you would need to use the ANNOTATE facility to add text or a box to a graph&lt;/P&gt;
&lt;P&gt;See:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=graphref&amp;amp;docsetTarget=p1b1bzzuf7gdwxn1ebs5dyakg3ih.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=graphref&amp;amp;docsetTarget=p1b1bzzuf7gdwxn1ebs5dyakg3ih.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might be better off using PROC SGPLOT to do your plotting (it's a newer procedure with lots of nice features), in which case you can add text more easily using the INSET or TEXT statements.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p073bl97jzadkmn15lhq58yiy2uh.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=grstatproc&amp;amp;docsetTarget=p073bl97jzadkmn15lhq58yiy2uh.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 12:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-gplot-add-existing-attribute-as-text-box-to-graph/m-p/594081#M170617</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-04T12:38:50Z</dc:date>
    </item>
  </channel>
</rss>

