<?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: Modifying Forest Plot by Sanjay Matanga to display study weight boxes in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291233#M10267</link>
    <description>&lt;P&gt;Well, just a guess here. &amp;nbsp;I think you might need to pre-cacluate the mean and add it to your dataset as a variable, then use that variable in the x= statement.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2016 12:35:58 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-08-12T12:35:58Z</dc:date>
    <item>
      <title>Modifying Forest Plot by Sanjay Matange to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291231#M10266</link>
      <description>&lt;P&gt;I am trying to modify the excelent code suggestes by Sanjay Matange &amp;nbsp;to produce a forest plot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The link to the code is:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/01/06/forest-plot-with-sas-9-3/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2013/01/06/forest-plot-with-sas-9-3/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using that code to prodice a Forest plot for meta-analysis of multiple studies.&amp;nbsp;I am trying to modify the code so that the size of the square in the middle of the odds ratio bar would be proportional to the "weight" of the study. I ahave therefore created an aditional variable in the studies table with numerical values generated from the weight of the study to be used at the size of the square&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
   highlowplot y=obsid low=low high=high / CLIPCAP=true; 
          scatterplot y=obsid x=mean /  markerattrs=(symbol=squarefilled size=WT color=green);&lt;BR /&gt;
    referenceline x=1;
 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is however giving me an error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;ERROR 772-580: Syntax error: expecting a constant or a dynamic.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anyway of solving this problem? I read that you could use&amp;nbsp;&lt;SPAN&gt;DATTRMAP but I havent manage to incorporate it into to the code. Any help is greatly appreciated&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 23:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291231#M10266</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2016-08-12T23:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291233#M10267</link>
      <description>&lt;P&gt;Well, just a guess here. &amp;nbsp;I think you might need to pre-cacluate the mean and add it to your dataset as a variable, then use that variable in the x= statement.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 12:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291233#M10267</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-08-12T12:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291235#M10268</link>
      <description>&lt;P&gt;Thank you for the kind reply&lt;/P&gt;
&lt;P&gt;To further explain, the problem is in the size=WT part, this statement needs a numerical, so if I change to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;size=15&lt;/P&gt;
&lt;P&gt;then the plot works but all the studies would have the same symple weight, which I am trying to change&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 12:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291235#M10268</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2016-08-12T12:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291237#M10270</link>
      <description>&lt;P&gt;What version of SAS are you running? In SAS 9.4m1 and beyond you &lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/67882/HTML/default/viewer.htm#p08qhdljvzthmnn1vkbule00ad6r.htm" target="_self"&gt;can use the MARKERSIZERESPONSE= option&lt;/A&gt; (in conjunction with MARKERSIZEMIN= and MARKERSIZEMAX=).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your version of SAS is older, then use the&lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/67882/HTML/default/viewer.htm#p09jv39aa18zb6n11q79a0j6ww3o.htm" target="_self"&gt; BUBBLEPLOT statement&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your version of SAS is ancient, you can use the &lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/67882/HTML/default/viewer.htm#p0ofcl9dx7lzh1n116ov51vocewg.htm" target="_self"&gt;ELLIPSEPARM statement&lt;/A&gt;, but that requires some pre-computing of values and is harder than the other options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 13:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291237#M10270</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-08-12T13:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291241#M10271</link>
      <description>&lt;P&gt;Thanks Rick, that solved it!&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;AM&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 13:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291241#M10271</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2016-08-12T13:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291249#M10272</link>
      <description>&lt;P&gt;Is there a way to do similar modification to the shape and colour of the marker?&lt;/P&gt;
&lt;P&gt;ie by having a column with shape names and a column with colours for each study?&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 13:45:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291249#M10272</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2016-08-12T13:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291259#M10273</link>
      <description>&lt;P&gt;These are discrete attributes, so presumably you have a grouping variable. You can specify the GROUP= option on the SCATTERPLOT statement to get the defaul symbols/colors fo groups in the current style.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are then tons of ways to modify colors and symbols for groups: syles, style attributes, dattrmaps, etc. Sanjay has many blogs on this topic. &amp;nbsp; To get started, read the doc section &lt;A href="http://support.sas.com/documentation/cdl/en/grstatgraph/67882/HTML/default/viewer.htm#n1nwfi81yxphp7n15on8f5rp4ahy.htm" target="_self"&gt;"Key concepts for using attribute maps."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 14:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291259#M10273</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-08-12T14:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291270#M10274</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;As you mentioned there are many ways described in the blogs. Implementing them is not straight forward since the forest plot coding I am refering to uses proc template&lt;/P&gt;
&lt;P&gt;Would you please suggest a simple way of using colour coding from a column or even grouping by a column content to modify the marker colour and shape?&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 14:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291270#M10274</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2016-08-12T14:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291278#M10275</link>
      <description>&lt;P&gt;I already suggested that you use attribute maps. Marker colors and shapes are linked to the GROUP= variable. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend that you look at the doc and&amp;nbsp;try to build what you need. If you get stuck, post the code and some sample data and someone&amp;nbsp;might be able to help.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 14:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291278#M10275</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-08-12T14:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291288#M10276</link>
      <description>&lt;P&gt;Rick has answered most of your questions,, however this graph was made using SAS 9.3 features and GTL. &amp;nbsp;Since then, new statements have been introduced including AXISTABLE, etc with SAS 9.4, making this graph much easier.to create. &amp;nbsp;Also, GTL scatter plot supports SIZERESPONSE. &amp;nbsp;If you have SAS 9.4, this will be easier. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, often users want to show the weight by only changing the marker width, and not height (which can run into each other). &amp;nbsp;So, a HighLow bar can be used for that purpose. &amp;nbsp;This will also work with SAS 9.3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see link to article below. &amp;nbsp;Same can be done using GTL if you need more features.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2016/05/30/ctspedia-clinical-graphs-subgrouped-forest-plot/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2016/05/30/ctspedia-clinical-graphs-subgrouped-forest-plot/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 15:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291288#M10276</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-08-12T15:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291519#M10278</link>
      <description>&lt;P&gt;Dear Sanjay and Rick&lt;/P&gt;
&lt;P&gt;Thank you for your suggestions, I managed to implement them now succeesfully, in the proc template I have added the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	 entrytitle 'id';
discreteattrmap name='colors' / ignorecase=true;
         value '1' / markerattrs=(color=blue symbol=squarefilled );
         value '2' / markerattrs=(color=green symbol=diamond);
		  value '3' / markerattrs=(color=red symbol=diamondfilled);
     
      enddiscreteattrmap;
      discreteattrvar attrvar=classfill var=id attrmap='colors';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then for the plot itself in the same template:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   highlowplot y=obsid low=low high=high / CLIPCAP=true; 
          scatterplot y=obsid x=mean /  markersizeresponse=wt markersizemin=10 markersizemax=30 group=classfill;
    referenceline x=1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, as Sanjay mentioned, this is creating another problem: The markersizeresponce is affecting the hight as well as the width of the marker, is there a way to controll these individually? I would be more interested in correlating the width of the marker to the weight of the contrubuting study in the table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2016 12:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291519#M10278</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2016-08-13T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291533#M10279</link>
      <description>&lt;P&gt;I don't see a way to scale only the width of the scatter markers using MarkerSizeResponse.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see the &lt;STRONG&gt;2nd example&lt;/STRONG&gt; in the article below. &amp;nbsp;This shows how you can use the HighLow plot to display&amp;nbsp;markers with width scaled by the some&amp;nbsp;variable. &amp;nbsp;One note to keep in mind is the displayed marker widths may be affected by the log axis when the data range has large variation. &amp;nbsp;If this is important, the width calculations for the HighLow could&amp;nbsp;be adjusted to take the log transform into account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/02/01/forest-plot-using-sgplot-procedure/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2012/02/01/forest-plot-using-sgplot-procedure/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2016 15:50:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291533#M10279</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-08-13T15:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291551#M10280</link>
      <description>&lt;P&gt;Hi Sanjay&lt;/P&gt;
&lt;P&gt;Excellent suggestion as usual&lt;/P&gt;
&lt;P&gt;SAS has celarly a lot of power creating good graphs, including Forest plots.&lt;/P&gt;
&lt;P&gt;PLease look at the examples in the following article which were made by sas, there are several Forest plots&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.bmj.com/content/341/bmj.c4737.full.pdf" target="_blank"&gt;http://www.bmj.com/content/341/bmj.c4737.full.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I wonder if you can think of a way of producing the "verically squished" diamoned figure used in the plots?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;Ammar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 00:36:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291551#M10280</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2016-08-14T00:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291560#M10281</link>
      <description>&lt;P&gt;Two possibilities come to mind.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use the SYMBOLCHAR or SYMBOLIMAGE to create a new marker symbol of the shape you want, filled on empty.&lt;/LI&gt;
&lt;LI&gt;Display the squished diamond as a POLYGON plot.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2014/01/26/more-symbols-you-say/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2014/01/26/more-symbols-you-say/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/12/24/new-polygon-plot/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2013/12/24/new-polygon-plot/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 05:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291560#M10281</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-08-14T05:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291584#M10282</link>
      <description>&lt;P&gt;THanks again Sanjay, excellent answers and guidance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interestingly, new solutions create new challenges, useing the highlow plot to draw a bar according to the weight of the study works great. However, I ended up being unable to control the height of the bar which became disproportional in the graph, see attached figure.&lt;/P&gt;
&lt;P&gt;I looked up any attributes that I could use to adjust the height but couldnt, any suggestions please?&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;AM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12847i170D14A30F11FB50/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Forest.png" title="Forest.png" /&gt;</description>
      <pubDate>Sun, 14 Aug 2016 13:33:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291584#M10282</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2016-08-14T13:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291611#M10283</link>
      <description>&lt;P&gt;It seems you have computed the Low and High values based on some stat. &amp;nbsp;You have a couple of options:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You can use the BARWIDTH option for TYPE=BAR.&lt;/LI&gt;
&lt;LI&gt;You can use&amp;nbsp;TYPE=LINE, and set&amp;nbsp;the line thickness using LINEATTRS.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sun, 14 Aug 2016 21:35:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291611#M10283</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-08-14T21:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291631#M10285</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry again for bothering&lt;/P&gt;
&lt;P&gt;Still having a problem with this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what I am doing&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using discretattrmap to add the specific colour and shape&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;discreteattrmap name='colors' / ignorecase=true;
         value '1' / markerattrs=(color=blue symbol=squarefilled  );
         value '2' /  markerattrs=(color=blue symbol=square ) ;
		  value '3' / markerattrs=(color=viro symbol=diamondfilled);
     
      enddiscreteattrmap;
      discreteattrvar attrvar=classfill var=id attrmap='colors';
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;then the plot is created with the following code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  highlowplot y=obsid low=low high=high / CLIPCAP=true; 
 scatterplot y=obsid x=mean / markersizeresponse=w markersizemin=10 markersizemax=30 group=classfill  ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But&lt;/P&gt;
&lt;P&gt;THe character in the middle of the OR line is not showing!&lt;/P&gt;
&lt;P&gt;If i change the code to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; referenceline y=ref / lineattrs=(thickness=15 color=_bandcolor);
   highlowplot y=obsid low=low high=high / CLIPCAP=true; 
          scatterplot y=obsid x=mean / markerattrs=(symbol=squarefilled) group=classfill  ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it will work perfectly but the symboles are all squares&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if I change the code to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; highlowplot y=obsid low=low high=high / CLIPCAP=true; 
          scatterplot y=obsid x=mean /  markersizeresponse=w markersizemin=10 markersizemax=30 group=classfill  ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then the boxes are resized according tot he column w but all the symboles are the same of course&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THe problem arizes when I try to combine these two options:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; highlowplot y=obsid low=low high=high / CLIPCAP=true; 
          scatterplot y=obsid x=mean /  markersizeresponse=w markersizemin=10 markersizemax=30 group=classfill ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any idea on how to solve this? See attached image&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12848iD40E43D67442473B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="pic.png" title="pic.png" /&gt;</description>
      <pubDate>Mon, 15 Aug 2016 03:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291631#M10285</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2016-08-15T03:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying Forest Plot by Sanjay Matanga to display study weight boxes</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291633#M10286</link>
      <description>&lt;P&gt;I will have to check with the experts for the interactions between MarkerSizeResponse and DiscreteAttrMap. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, if you are using DiscreteAttrMap only to control the shape of the symbols by group, I suggest you can just set the three symbols you want (in the right order) using the DATASYMBOLS option in BEGINGRAPH to see if that works. &amp;nbsp;Leave out the DiscreteAttrMap. &amp;nbsp;This will tell us if there is some interaction we need to consider.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can include the full program with working data (not confidential) that I can run, I will have a better shot to debug the issues.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 03:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Modifying-Forest-Plot-by-Sanjay-Matange-to-display-study-weight/m-p/291633#M10286</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-08-15T03:44:07Z</dc:date>
    </item>
  </channel>
</rss>

