[rkward-cvs] SF.net SVN: rkward: [1661] trunk/rkward/rkward/plugins

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Mar 20 16:46:00 UTC 2007


Revision: 1661
          http://svn.sourceforge.net/rkward/?rev=1661&view=rev
Author:   tfry
Date:     2007-03-20 09:46:00 -0700 (Tue, 20 Mar 2007)

Log Message:
-----------
Add help page for density plot, and adjust the limits and step sizes on a few spinboxes

Modified Paths:
--------------
    trunk/rkward/rkward/plugins/Makefile.am
    trunk/rkward/rkward/plugins/plots/density_plot.xml

Added Paths:
-----------
    trunk/rkward/rkward/plugins/plots/density_plot.rkh

Modified: trunk/rkward/rkward/plugins/Makefile.am
===================================================================
--- trunk/rkward/rkward/plugins/Makefile.am	2007-03-20 14:43:04 UTC (rev 1660)
+++ trunk/rkward/rkward/plugins/Makefile.am	2007-03-20 16:46:00 UTC (rev 1661)
@@ -37,6 +37,7 @@
 	plots/scatterplot_matrix.rkh \
 	plots/color_chooser.xml \
 	plots/color_chooser.rkh \
+	plots/density_plot.rkh \
 	plots/pareto.php \
 	plots/pareto.xml \
 	plots/pareto.rkh \

Added: trunk/rkward/rkward/plugins/plots/density_plot.rkh
===================================================================
--- trunk/rkward/rkward/plugins/plots/density_plot.rkh	                        (rev 0)
+++ trunk/rkward/rkward/plugins/plots/density_plot.rkh	2007-03-20 16:46:00 UTC (rev 1661)
@@ -0,0 +1,44 @@
+<!DOCTYPE rkhelp>
+<document>
+	<summary>
+		Plot an estimated density curve. Highest density regions can be marked up.
+	</summary>
+
+	<usage>
+		Select a numeric vector to estimate density for. For further options, see below.
+	</usage>
+
+	<settings>
+		<caption id="tab_vars"/>
+		<setting id="x">A numeric vector to estimate density for.</setting>
+
+		<caption id="tab_options"/>
+		<setting id="plot_type">Type of plot: Plain density curve, or density curve with highest density regions marked up. For the second option, only the gaussian smoothing kernel is available (see below).</setting>
+
+		<caption id="frame_density_opts"/>
+		<setting id="kern">Smoothing kernel to use. See <link href="rkward://rhelp/density"/> for details on the available kernels.</setting>
+		<setting id="bw">Mode of chosing bandwith. This is only applicable for gaussian smoothing kernels. This is the <i>bw</i> option of <link href="rkward://rhelp/density">density()</link> for details.</setting>
+		<setting id="adjust">Factor to adjust the bandwith by.</setting>
+		<setting id="narm">Whether missing values should be removed. Otherwise there will be an error during density estimation.</setting>
+		<setting id="n">Resolution of the density estimation, i.e. the number of points at which the density is estimated.</setting>
+
+		<caption id="frame_rug"/>
+		<setting id="rug">Should a rug be added to the plot?</setting>
+		<setting id="rug_ticksize">Height of the rug ticks, where 1 corresponds to the height of the plot window.</setting>
+		<setting id="rug_lwd">Line width of the rug.</setting>
+		<setting id="rug_side">Should the rug be shown at the top or at the bottom of the plot?</setting>
+		<setting id="rug_col">Color to use for drawing the rug.</setting>
+
+		<caption id="tab_plotoptions"/>
+		<setting id="plotoptions">Further options regarding the look of the plot. See <link href="rkward://component/plot_options"/> for details.</setting>
+	</settings>
+
+	<related>
+		<ul>
+			<li><link href="rkward://rhelp/density"/></li>
+			<li><link href="rkward://rhelp/hdr.den"/></li>
+			<li><link href="rkward://rhelp/rug"/></li>
+			<li><link href="rkward://component/plot_options"/></li>
+		</ul>
+	</related>
+</document>

Modified: trunk/rkward/rkward/plugins/plots/density_plot.xml
===================================================================
--- trunk/rkward/rkward/plugins/plots/density_plot.xml	2007-03-20 14:43:04 UTC (rev 1660)
+++ trunk/rkward/rkward/plugins/plots/density_plot.xml	2007-03-20 16:46:00 UTC (rev 1661)
@@ -1,6 +1,8 @@
 <!DOCTYPE rkplugin>
 <document>
 	<code file="density_plot.php" />
+	<help file="density_plot.rkh" />
+	
 	<logic>
 		<connect client="plotoptions.xvar" governor="x.available"/>
 		<set id="plotoptions.allow_log" to="false"/>
@@ -25,7 +27,7 @@
 	</logic>
 	<dialog label="Density Plot" >
 		<tabbook>
-			<tab label="Variable(s)" >
+			<tab label="Variable(s)" id="tab_vars">
 				<row>
 					<varselector id="vars" />
 					<column>
@@ -35,14 +37,14 @@
 					</column>
 				</row>
 			</tab>
-			<tab label="Options" >
+			<tab label="Options" id="tab_options">
 				<row>
 					<column>
 						<radio id="plot_type" label="type of plot">
 							<option value="density_plot" checked="true" label="plot normal density"/>
 							<option value="hdr_plot" label="plot highest density regions"/>
 						</radio>
-						<frame id="normal_density_opts" label="density estimation options">
+						<frame id="frame_density_opts" label="density estimation options">
 							<row>
 								<column>
 									<dropdown id="kern" label="Smoothing Kernel">
@@ -62,7 +64,7 @@
 										<option value="SJ-ste" label="SJ-ste"/>
 										<option value="SJ-dpi" label="SJ-dpi"/>
 									</dropdown>
-									<spinbox type="real" id="adjust" label="Adjust Bandwidth" initial="1"/>
+									<spinbox type="real" min="0.00001" id="adjust" label="Adjust Bandwidth" initial="1"/>
 									<stretch/>
 								</column>
 								<column>
@@ -74,10 +76,10 @@
 						</frame>
 					</column>
 					<column>
-						<frame label="Rug">
+						<frame label="Rug" id="frame_rug">
 							<checkbox value_unchecked="0" value="1" checked="false" id="rug" label="Add rug" />
-							<spinbox initial="0.03" id="rug_ticksize" label="Ticksize" />
-							<spinbox initial="0.5" id="rug_lwd" label="Line width of ticks" />
+							<spinbox min="0" initial="0.03" id="rug_ticksize" label="Ticksize" />
+							<spinbox min="0" initial="0.5" id="rug_lwd" label="Line width of ticks" default_precision="0"/>
 							<radio label="Side of Rug" id="rug_side">
 								<option value="side = 1" label="Rug on Bottom" />
 								<option value="side = 3" label="Rug on Top" />
@@ -88,7 +90,7 @@
 					</column>
 				</row>
 			</tab>
-			<tab label="Axis/Title">
+			<tab label="Axis/Title" id="tab_plotoptions">
 				<row>
 					<embed id="plotoptions" component="rkward::plot_options" as_button="false" label="Plot Options" />
 					<stretch/>


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