[rkward-cvs] SF.net SVN: rkward:[3367] branches/jss_dec_10/examples/demo.R

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Jan 20 14:28:57 UTC 2011

Revision: 3367
Author:   tfry
Date:     2011-01-20 14:28:57 +0000 (Thu, 20 Jan 2011)

Log Message:
Complete demos for section 3

Modified Paths:

Modified: branches/jss_dec_10/examples/demo.R
--- branches/jss_dec_10/examples/demo.R	2011-01-20 13:32:21 UTC (rev 3366)
+++ branches/jss_dec_10/examples/demo.R	2011-01-20 14:28:57 UTC (rev 3367)
@@ -11,6 +11,7 @@
 ## Figure 2
 my.data <- data.frame (var=numeric (1), var1=factor (1), var2=character (1), var3=logical (1), stringsAsFactors=FALSE)
 rk.sync.global ()
@@ -19,3 +20,37 @@
 Click on the \"Workspace\" button in the left tool view to show object information in the workspace browser.
 Click on the '+'-symbol next to the object to expand it.")
+## Figure 5
+library (datasets)
+data (C02)
+data (DNase)
+data (ChickWeight)
+rk.sync.global ()
+rk.edit (CO2)
+rk.edit (ChickWeight)
+ok.to.proceed ("<b>Replication of Figure 5</b>: Example data sets 'CO2' and 'ChickWeight' (from package datasets) have been opened for editing.<br>
+Use Windows->Detach from the menu to detach the editor showing the ChickWeight dataset. <b>Note</b>: The editors will not be populated with data, until the R interpreter becomes idle, i.e., in this case, until the demo script has finished.<br>
+After clicking 'Proceed', the command 'fix(DNase)' will be called. You will need to close the DNase dataset,
+manually, to proceed.")
+fix (DNase)
+## Figure 6
+rk.call.plugin ("rkward::import_csv")
+ok.to.proceed ("<b>Replication of Figure 6</b>: CSV data import dialog has been opened.<br>
+<b>NOTE</b>: You will have to close the dialog, manually, to get rid of it.</br>
+Click 'Proceed' when done interacting.")
+## Figure 7
+graphics.off ()
+plot (rnorm (50))
+data_rnorm <- rnorm (50)
+boxplot (data_rnorm)
+plot (ecdf (data_rnorm))
+hist (data_rnorm)
+stripchart (data_rnorm)
+rk.first.plot ()
+ok.to.proceed ("<b>Replication of Figure 7</b>: Five plots have been created, and the first has been activated.</br>
+Click on the 'Go to plot' toolbar icon for a dropdown list of plots.")

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