<?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: Lasagne plot error fixing? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Lasagne-plot-error-fixing/m-p/511267#M17390</link>
    <description>&lt;P&gt;This can happen when all the values for the BLOCK variable are missing.&amp;nbsp; Another option is to try using a HEATMAP instead of BlockPlot.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Nov 2018 03:27:52 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2018-11-08T03:27:52Z</dc:date>
    <item>
      <title>Lasagne plot error fixing?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Lasagne-plot-error-fixing/m-p/511255#M17388</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to plot a lasagne plot adapting a published code. I&amp;nbsp;am not sure how I can fix the error for the following part of the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The warning message says: "WARNING: The blockplot statement will not be drawn because one or more of the&lt;BR /&gt;required arguments were not supplied." and it is written five times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Befikadu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/*create chart definition using GTL*/
proc template;
define statgraph blockplot2;
begingraph;
entrytitle "1921-26 Cohort - Diabetes";
legendItem type=fill name="Yes" /
fillattrs=(color=cxaa88bb )
label="Yes" ;
legendItem type=fill name="No" /
fillattrs=(color=cxaaddcc )
label="No" ;
legendItem type=fill name="Deceased" /
fillattrs=(color=cx662277 )
label="Deceased " ;
layout lattice / columns=1 rowweights=(.10 .75 .10 .05) columndatarange=union;
COLUMNAXES;
columnaxis / display=none ;
endcolumnaxes;
blockplot x=survey block=percent2 / class=smkstat
includemissingclass=false
display=(values label outline) valuehalign=center
labelattrs=GraphDataText valueattrs=GraphDataText;
barchart x=survey y=percent / group=smkstr orient=vertical display=(fill) index=indexn;
blockplot x=survey block=atext / class=alabel
includemissingclass=false
display=(values) valuehalign=center
labelattrs=GraphDataText valueattrs=GraphDataText;
discretelegend "Yes" "No" "Deceased" / border=false;
endlayout;
endgraph;
end;
run;
/* format for smoking status */
proc format;
value smk
0='No'
1='Yes'
2='Deceased';
title ;
/* create graph */
ods listing close;
ods rtf file='old_DB_stat.rtf' style=newchart;
proc sgrender data=allsmk template=blockplot2 ;
format smkstat smk. ;
run;
ods rtf close;
ods listing;&lt;/PRE&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 01:50:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Lasagne-plot-error-fixing/m-p/511255#M17388</guid>
      <dc:creator>Befikadu</dc:creator>
      <dc:date>2018-11-08T01:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lasagne plot error fixing?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Lasagne-plot-error-fixing/m-p/511262#M17389</link>
      <description>&lt;P&gt;To answer your question it would help if you could provide the original source, some sample data so we can run the program and/or the log that actually shows the errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As posted it would be hard to debug. I'll move your post to the graphics forum as well, sot he relevant people can respond.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you could verify your SAS version, that's important in SAS graphics as a lot has changed quickly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find the version via:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Mine for example (SAS UE) shows:&lt;/P&gt;
&lt;DIV class="sasSource"&gt;For Base SAS Software ...&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;Custom version information: &lt;STRONG&gt;9.4_M5&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/197961"&gt;@Befikadu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to plot a lasagne plot adapting a published code. I&amp;nbsp;am not sure how I can fix the error for the following part of the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The warning message says: "WARNING: The blockplot statement will not be drawn because one or more of the&lt;BR /&gt;required arguments were not supplied." and it is written five times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Befikadu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/*create chart definition using GTL*/
proc template;
define statgraph blockplot2;
begingraph;
entrytitle "1921-26 Cohort - Diabetes";
legendItem type=fill name="Yes" /
fillattrs=(color=cxaa88bb )
label="Yes" ;
legendItem type=fill name="No" /
fillattrs=(color=cxaaddcc )
label="No" ;
legendItem type=fill name="Deceased" /
fillattrs=(color=cx662277 )
label="Deceased " ;
layout lattice / columns=1 rowweights=(.10 .75 .10 .05) columndatarange=union;
COLUMNAXES;
columnaxis / display=none ;
endcolumnaxes;
blockplot x=survey block=percent2 / class=smkstat
includemissingclass=false
display=(values label outline) valuehalign=center
labelattrs=GraphDataText valueattrs=GraphDataText;
barchart x=survey y=percent / group=smkstr orient=vertical display=(fill) index=indexn;
blockplot x=survey block=atext / class=alabel
includemissingclass=false
display=(values) valuehalign=center
labelattrs=GraphDataText valueattrs=GraphDataText;
discretelegend "Yes" "No" "Deceased" / border=false;
endlayout;
endgraph;
end;
run;
/* format for smoking status */
proc format;
value smk
0='No'
1='Yes'
2='Deceased';
title ;
/* create graph */
ods listing close;
ods rtf file='old_DB_stat.rtf' style=newchart;
proc sgrender data=allsmk template=blockplot2 ;
format smkstat smk. ;
run;
ods rtf close;
ods listing;&lt;/PRE&gt;
&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;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 02:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Lasagne-plot-error-fixing/m-p/511262#M17389</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-08T02:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lasagne plot error fixing?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Lasagne-plot-error-fixing/m-p/511267#M17390</link>
      <description>&lt;P&gt;This can happen when all the values for the BLOCK variable are missing.&amp;nbsp; Another option is to try using a HEATMAP instead of BlockPlot.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 03:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Lasagne-plot-error-fixing/m-p/511267#M17390</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-11-08T03:27:52Z</dc:date>
    </item>
  </channel>
</rss>

