[rkward-cvs] SF.net SVN: rkward: [923] trunk/rkward/rkward/plugins
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Wed Nov 15 14:17:19 UTC 2006
Revision: 923
http://svn.sourceforge.net/rkward/?rev=923&view=rev
Author: tfry
Date: 2006-11-15 06:17:19 -0800 (Wed, 15 Nov 2006)
Log Message:
-----------
Add ECDF plot (sjar)
Modified Paths:
--------------
trunk/rkward/rkward/plugins/plots.pluginmap
Added Paths:
-----------
trunk/rkward/rkward/plugins/plots/ecdf_plot.php
trunk/rkward/rkward/plugins/plots/ecdf_plot.xml
Added: trunk/rkward/rkward/plugins/plots/ecdf_plot.php
===================================================================
--- trunk/rkward/rkward/plugins/plots/ecdf_plot.php (rev 0)
+++ trunk/rkward/rkward/plugins/plots/ecdf_plot.php 2006-11-15 14:17:19 UTC (rev 923)
@@ -0,0 +1,20 @@
+<?
+ function preprocess () {
+ }
+
+ function calculate () {
+ }
+
+ function printout () {
+ $x = getRK_val ("x");
+?>
+rk.header ("ECDF", list ("Variable", rk.get.description (<? echo ($x); ?>)))
+rk.graph.on ()
+plot.ecdf (<? echo ($x); ?>, <? getRK ("plotoptions.code.printout"); ?>)
+rk.graph.off ()
+<?
+ }
+
+ function cleanup () {
+ }
+?>
Added: trunk/rkward/rkward/plugins/plots/ecdf_plot.xml
===================================================================
--- trunk/rkward/rkward/plugins/plots/ecdf_plot.xml (rev 0)
+++ trunk/rkward/rkward/plugins/plots/ecdf_plot.xml 2006-11-15 14:17:19 UTC (rev 923)
@@ -0,0 +1,24 @@
+<!DOCTYPE rkplugin>
+<document>
+<code file="ecdf_plot.php" />
+<logic>
+ <connect client="plotoptions.xvar" governor="x.available"/>
+ <set id="plotoptions.allow_log" to="false"/>
+ <set id="plotoptions.allow_type" to="false"/>
+ <set id="plotoptions.allow_asp" to="true"/>
+</logic>
+<dialog label="Empirical Distribution Function" >
+ <tabbook>
+ <tab label="Variable(s)" >
+ <row>
+ <varselector id="vars" />
+ <varslot multi="false" type="numeric" id="x" source="vars" label="variable(s):" required="true" />
+ </row>
+ </tab>
+ <tab label="Options" >
+ <embed id="plotoptions" component="rkward::plot_options" as_button="false" label="Plot Options" />
+ <stretch/>
+ </tab>
+ </tabbook>
+</dialog>
+</document>
Modified: trunk/rkward/rkward/plugins/plots.pluginmap
===================================================================
--- trunk/rkward/rkward/plugins/plots.pluginmap 2006-11-15 14:13:53 UTC (rev 922)
+++ trunk/rkward/rkward/plugins/plots.pluginmap 2006-11-15 14:17:19 UTC (rev 923)
@@ -3,6 +3,7 @@
<document base_prefix="plots/" namespace="rkward">
<components>
<component type="standard" id="box_plot" file="box_plot.xml" label="Box Plot" />
+ <component type="standard" id="ecdf_plot" file="ecdf_plot.xml" label="ECDF Plot" />
<component type="standard" id="histogram" file="histogram.xml" label="Histogram" />
@@ -11,6 +12,7 @@
<hierarchy>
<menu id="plots" label="Plots" index="5">
<entry component="box_plot" />
+ <entry component="ecdf_plot" />
<entry component="histogram" />
</menu>
</hierarchy>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list