<br><br><div><span class="gmail_quote">2007/2/22, Thomas Friedrichsmeier <<a href="mailto:thomas.friedrichsmeier@ruhr-uni-bochum.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">thomas.friedrichsmeier@ruhr-uni-bochum.de
</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thursday 22 February 2007 18:01, I. Soumpasis wrote:<br>> I made a new plugin the pareto chart. I put it in under development and<br>> plots. Did not change the Makefile file.<br>><br>> The plugin plots a Pareto chart (with qcc package's 
pareto.chart) and<br>> prints also Frequency, Cum.Frequency, Percentage and Cum.Percentage under<br>> the plot. It is a really simple plugin so I hope there would be no<br>> problems, but please take a look.<br>
>
<br>> I had to put main="" because we had the title Pareto chart for rk.temp.x.<br>> I had to put rk.print in if(final) otherwise it would print the table with<br>> every preview.<br>> Also used xtable, because it gives in a better format the results.
<br><br>Can't see any bugs. But a few hints/suggestions:<br>1) Printing the descriptives should be optional altogether. I.e., there'd be<br>an option for that. The code would then look something like (this isn't
<br>actual code, just a sketch):<br><br>rk.temp.descriptives <- pareto.chart(...)<br><? if ($final && $print_descriptives) { ?><br>rk.print (xtable (rk.temp.descriptives))<br><? } ?></blockquote><div>
<br>I have done this. The default value is to print the descriptives because that is the pareto.chart default result and also it good for someone to see the values because they are not displayed  at the plot.<br></div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2) You don't really need the
<br>$vars = str_replace (...);<br>line. Since there is only a single variable,<br>$var = getRK_val ("x");<br>is all you need. The elaborate form is only needed when several variables<br>could be selected at once (this applies to 
barplot.php as well, I just hadn't<br>noted, before).</blockquote><div><br>Yes that remain from the plot I hacked. Also changed it to the barplot plugin.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

3) It would be nice to supply some options from the plot_options plugin (do<br>you know, how to do that? Maybe look at e.g. stripchart_plot for one<br>example). You'd probably set allow_type and allow_xlim to false, but all
<br>other options apply, as far as I can see.</blockquote><div><br> I have done this, however there are not many options.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
3b) For the problem with main, I've added some more defaults to plot_options,
<br>so you could do:<br><connect client="plotoptions.default_main" governor="x" /><br>(untested, but should make the main title (if not specified otherwise) be the<br>variable name)</blockquote>
<div><br>I can not make this work. I still get "Pareto chart for rk.temp.x." Can you take a look at this please?<br><br></div>Regards,<br>Ilias<br></div><br>