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

tfry at users.sourceforge.net tfry at users.sourceforge.net
Sun Jan 21 19:35:22 UTC 2007


Revision: 1186
          http://svn.sourceforge.net/rkward/?rev=1186&view=rev
Author:   tfry
Date:     2007-01-21 11:35:21 -0800 (Sun, 21 Jan 2007)

Log Message:
-----------
Minor corrections and help pages for correlation matrix plot and scatterplot matrix (Illias Soumpasis)

Modified Paths:
--------------
    trunk/rkward/rkward/plugins/Makefile.am
    trunk/rkward/rkward/plugins/plots/cor_graph.xml
    trunk/rkward/rkward/plugins/plots/scatterplot_matrix.php
    trunk/rkward/rkward/plugins/plots/scatterplot_matrix.xml

Added Paths:
-----------
    trunk/rkward/rkward/plugins/plots/cor_graph.rkh
    trunk/rkward/rkward/plugins/plots/scatterplot_matrix.rkh

Modified: trunk/rkward/rkward/plugins/Makefile.am
===================================================================
--- trunk/rkward/rkward/plugins/Makefile.am	2007-01-21 19:20:37 UTC (rev 1185)
+++ trunk/rkward/rkward/plugins/Makefile.am	2007-01-21 19:35:21 UTC (rev 1186)
@@ -22,7 +22,11 @@
 	plots/stripchart_plot.php \
 	plots/density_plot.xml \
 	plots/cor_graph.php \
-	plots/cor_graph.xml 
+	plots/cor_graph.xml \
+	plots/scatterplot_matrix.php \
+	plots/scatterplot_matrix.xml \
+	plots/cor_graph.rkh \
+	plots/scatterplot_matrix.rkh
 
 pluginsXdistributionsdir = $(kde_datadir)/rkward/distributions
 dist_pluginsXdistributions_DATA = \

Added: trunk/rkward/rkward/plugins/plots/cor_graph.rkh
===================================================================
--- trunk/rkward/rkward/plugins/plots/cor_graph.rkh	                        (rev 0)
+++ trunk/rkward/rkward/plugins/plots/cor_graph.rkh	2007-01-21 19:35:21 UTC (rev 1186)
@@ -0,0 +1,29 @@
+<!DOCTYPE rkhelp>
+<document>
+	<summary>
+Correlation Matrix Plot. On top the (absolute) value of the correlation is presented plus the result of the cor.test as stars. On bottom, the bivariate scatterplots are plotted with a fitted line. The graph and the code can be found at <link href="http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=137">R Graph Gallery  (137) Correlation Matrix</link>, from where was adapted and formatted for RKWard.
+	</summary>
+
+	<usage>
+Choose one or more objects to be plotted. Choose the method to be used, how to treat missing values, what precision you want, and if you want to scale text.
+	</usage>
+
+	<settings>
+		<caption id="tab_variables"/>
+		<setting id="x">Select a data matrix or a numeric data frame or more than one variables from a data matrix</setting>
+		<caption id="tab_options"/>
+		<setting id="method">Indicates which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman", can be used</setting>
+		<setting id="use">Select how to treat missing values. If use is "whole cases" then missing values are handled by casewise deletion. If use has the value "pairwise" then the correlation between each pair of variables is computed using all complete pairs of observations on those variables. This can result in covariance or correlation matrices which are not positive semidefinite. "pairwise" only works with the "pearson" method for cov and var.</setting>
+		<setting id="digits">Select how many digits after decimal point sould be shown</setting>
+		<setting id="scale">Select it if you want to scale text according to the (absolut) correlation value. It is selected by default.</setting>
+	</settings>
+	<related>
+		<ul>
+			<li><link href="http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=137">R Graph Gallery  (137) Correlation Matrix</link></li>
+			<li><link href="rkward://rhelp/cor"/></li>
+			<li><link href="rkward://rhelp/cor.test"/></li>
+			<li><link href="rkward://rhelp/panel.smooth"/></li>
+			<li><link href="rkward://rhelp/scatterplot"/></li>
+		</ul>
+	</related>
+</document>

Modified: trunk/rkward/rkward/plugins/plots/cor_graph.xml
===================================================================
--- trunk/rkward/rkward/plugins/plots/cor_graph.xml	2007-01-21 19:20:37 UTC (rev 1185)
+++ trunk/rkward/rkward/plugins/plots/cor_graph.xml	2007-01-21 19:35:21 UTC (rev 1186)
@@ -1,16 +1,17 @@
 <!DOCTYPE rkplugin>
 <document>
 	<code file="cor_graph.php" />
+	<help file="cor_graph.rkh" />
 
 	<dialog label="Correlation Matrix Plot" >		
 		<tabbook>
-			<tab label="variables">
+			<tab label="Variables" id="tab_variables">
 				<row>
 					<varselector id="vars"/>
 					<varslot type="numeric" min_vars="1" multi="true" id="x" source="vars" required="true" label="variable(s):"/>
 				</row>
 			</tab>
-			<tab label="options">
+			<tab label="Options" id="tab_options">
 				<radio id="method" label="Method">
 					<option value="pearson" label="Pearson"/>
 					<option value="kendall" label="Kendall"/>

Modified: trunk/rkward/rkward/plugins/plots/scatterplot_matrix.php
===================================================================
--- trunk/rkward/rkward/plugins/plots/scatterplot_matrix.php	2007-01-21 19:20:37 UTC (rev 1185)
+++ trunk/rkward/rkward/plugins/plots/scatterplot_matrix.php	2007-01-21 19:35:21 UTC (rev 1186)
@@ -13,7 +13,7 @@
 ?>
 rk.temp.x <- data.frame (<? echo ($vars); ?>)
 
-rk.header ("Scatterplot Matrix", parameters=list ("Diagonal Panels", "<? getRK("diag") ?>", "Plot points", "<? getRK ("plot_points"); ?>", "Smooth", "<? getRK ("smooth"); ?>", "Ellipses", "<? getRK ("ellipse"); ?> at 0.5 and 0.9 (normal) probability or confidence levels."))
+rk.header ("Scatterplot Matrix", parameters=list ("Diagonal Panels", "<? getRK("diag") ?>", "Plot points", "<? getRK ("plot_points"); ?>", "Smooth", "<? getRK ("smooth"); ?>", "Ellipses", "<? getRK ("ellipse"); ?> at 0.5 and 0.9 levels."))
 
 rk.graph.on ()
 try (scatterplot.matrix(rk.temp.x, diagonal="<? getRK("diag") ?>", plot.points=<? getRK ("plot_points"); ?>, smooth=<? getRK ("smooth"); ?>, ellipse=<? getRK ("ellipse"); ?>))

Added: trunk/rkward/rkward/plugins/plots/scatterplot_matrix.rkh
===================================================================
--- trunk/rkward/rkward/plugins/plots/scatterplot_matrix.rkh	                        (rev 0)
+++ trunk/rkward/rkward/plugins/plots/scatterplot_matrix.rkh	2007-01-21 19:35:21 UTC (rev 1186)
@@ -0,0 +1,37 @@
+<!DOCTYPE rkhelp>
+<document>
+	<summary>
+Scatterplot matrix plot produces scatterplot matrices with univariate displays down the diagonal.
+	</summary>
+
+	<usage>
+Choose one or more objects to be plotted. Choose the diagonal plot and how the scatterplots should be plotted from the options tab.
+	</usage>
+
+	<settings>
+		<caption id="tab_variables"/>
+		<setting id="x">Select a data matrix or a numeric data frame or more than one variables from a data matrix</setting>
+		<caption id="tab_options"/>
+		<setting id="diag">Select which plot should be plotted in the diagonal among
+		<li>Density plot. See <link href="rkward://rhelp/density"/></li>
+		<li>Boxplot. See <link href="rkward://rhelp/boxplot"/></li>
+		<li>Histogram. See <link href="rkward://rhelp/histogram"/></li>
+		<li>oneD. One Dimension Plot. Plots data in icreasing order</li>
+		<li>QQplot. See <link href="rkward://rhelp/qqplot"/></li>
+		<li>No plot. Do not plot anything in the diagonal</li>
+		</setting>
+		<setting id="plot_points">Select it if you want points to be plotted in scatterplots. It is selected by default.</setting>
+		<setting id="smooth">Select it if you want a lowess smooth to be plotted in scatterplots. It is selected by default.</setting>
+		<setting id="ellipse">Select it if you want data-concentration ellipses to be plotted in scatterplots. The ellipses are plotted at levels 0.5 and 0.9. It is selected by default.</setting>
+	</settings>
+	<related>
+		<ul>
+			<li><link href="rkward://rhelp/scatterplot.matrix"/></li>
+			<li><link href="rkward://rhelp/scatterplot"/></li>
+			<li><link href="rkward://rhelp/density"/></li>
+			<li><link href="rkward://rhelp/boxplot"/></li>
+			<li><link href="rkward://rhelp/histogram"/></li>
+			<li><link href="rkward://rhelp/qqplot"/></li>
+		</ul>
+	</related>
+</document>

Modified: trunk/rkward/rkward/plugins/plots/scatterplot_matrix.xml
===================================================================
--- trunk/rkward/rkward/plugins/plots/scatterplot_matrix.xml	2007-01-21 19:20:37 UTC (rev 1185)
+++ trunk/rkward/rkward/plugins/plots/scatterplot_matrix.xml	2007-01-21 19:35:21 UTC (rev 1186)
@@ -1,21 +1,22 @@
 <!DOCTYPE rkplugin>
 <document>
 	<code file="scatterplot_matrix.php" />
+	<help file="scatterplot_matrix.rkh" />
 
 	<dialog label="Scatterplot Matrix" >
 		<tabbook>
-			<tab label="variables">		
+			<tab label="Variables" id="tab_variables">		
 				<row>
 					<varselector id="vars"/>
 					<varslot type="numeric" min_vars="1" multi="true" id="x" source="vars" required="true" label="variable(s):"/>
 				</row>
 			</tab>
-			<tab label="options">
+			<tab label="Options" id="tab_options">
 				<radio id="diag" label="Diagonal panels">
 					<option value="density" label="Density plot"/>
 					<option value="boxplot" label="Boxplot"/>
 					<option checked="true" value="histogram" label="Histogram"/>
-					<option value="oned" label="Oned"/>	
+					<option value="oned" label="oneD"/>	
 					<option value="qqplot" label="QQplot"/>
 					<option value="none" label="No plot"/>
 				</radio>


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