<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dennogumi.org &#187; rkward</title>
	<atom:link href="http://www.dennogumi.org/tag/rkward/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dennogumi.org</link>
	<description>On the web since 1999</description>
	<lastBuildDate>Fri, 06 Jan 2012 14:56:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Science and KDE: rkward</title>
		<link>http://www.dennogumi.org/2009/02/science-and-kde-rkward</link>
		<comments>http://www.dennogumi.org/2009/02/science-and-kde-rkward#comments</comments>
		<pubDate>Sat, 07 Feb 2009 18:55:53 +0000</pubDate>
		<dc:creator>Einar</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[rkward]]></category>

		<guid isPermaLink="false">http://www.dennogumi.org/?p=533</guid>
		<description><![CDATA[I try to use FOSS extensively for my scientific work. In fact, when possible, I use only FOSS tools. Among these there is the R programming language. It&#8217;s a Free implementation of the S-plus language, and it&#8217;s mainly aimed at &#8230; <a href="http://www.dennogumi.org/2009/02/science-and-kde-rkward">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I try to use FOSS extensively for my scientific work. In fact, when possible, I use <em>only</em> FOSS tools. Among these there is the R programming language. It&#8217;s a Free implementation of the S-plus language, and it&#8217;s mainly aimed at statistics and mathematics. As the people who read my scientific posts know, I don&#8217;t like R much. But sometimes it&#8217;s the only alternative.</p>
<p>Well, what does R have to do with KDE? With this post I&#8217;d like to start a series (hopefully) of articles that deals with KDE programs used for scientific purposes. In this particular entry, I&#8217;ll focus on rkward, a GUI front-end for R.<br />
<span id="more-533"></span><br />
<strong>Introduction</strong></p>
<p>Although R is a programming language, it&#8217;s mainly used in an interactive session, started from the terminal. The standard installation can be improved by the use of add-on packages, <em>libraries</em> in R-speak, which can be installed from the Internet (Comprehensive R Archive Network or CRAN) or from local files. One of the most famous third party repositories is the Bioconductor project, which hosts a lot of packages used by life scientists who do bioinformatics.</p>
<p>The Windows version of R has a GUI (Rgui) which provides extra functionality, such as package management and loading, and other goodies. Although there were plan for a GTK+ frontend for Linux, the project is (as far as I know) stuck in a limbo.</p>
<p>That&#8217;s where rkward comes to the rescue. It&#8217;s a GUI front-end for R for KDE4, which aims to provide a graphical shell for many R commands and environments (and especially the publication-quality plotting figures).</p>
<p><strong>Getting rkward</strong></p>
<p>rkward is available from <a title="rkward main page" href="http://rkward.sourceforge.net/">Sourceforge.net</a>. Unfortunately, if you use a recent (&gt;=2.8) version of R  it won&#8217;t compile, due to the changes in R itself. For that, you need to directly download the sources off SVN with a command like this</p>
<pre class="brush: cpp; title: ; notranslate">

svn co https://rkward.svn.sourceforge.net/viewvc/rkward/trunk/rkward/
</pre>
<p>Either way, the sources are compiled the usual, way, that is</p>
<pre class="brush: cpp; title: ; notranslate">

cd rkward-xxx # Your rkward source dir
mkdir build; cd build
cmake  -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
make
</pre>
<p>Followed by <code>make install</code> as root or using sudo, depending on your distribution.</p>
<p><strong>rkward at a glance</strong></p>
<p><strong>
<a href="http://www.dennogumi.org/wp-content/gallery/screenshots/rkward1.png?cda6c1" title="" class="shutterset_singlepic263" >
	<img class="ngg-singlepic ngg-center" src="http://www.dennogumi.org/wp-content/gallery/cache/263__320x240_rkward1.png?cda6c1" alt="rkward1.png" title="rkward1.png" />
</a>
</strong></p>
<p>This is how rkward looks when loading it up (yes, it&#8217;s in Italian because that is my own locale). You have the R console (which I brought up) and then an output window which is used to display results. There is also another tab called &#8220;mio.dataset&#8221; (my.dataset) which keeps data, in a spreadsheet-like form. This is useful when you want to create your own datasets from scratch, or if you want to inspect one you have loaded.</p>
<p>So how do you start coding? You can create a new script using the &#8220;Script File&#8221; button. Like that, you can input R commands and then execute them all at once, or the current line. If you prefer interactive work, you can use the R command line (shown in the screenshot).</p>

<a href="http://www.dennogumi.org/wp-content/gallery/screenshots/rkward2.png?cda6c1" title="" class="shutterset_singlepic264" >
	<img class="ngg-singlepic ngg-center" src="http://www.dennogumi.org/wp-content/gallery/cache/264__320x240_rkward2.png?cda6c1" alt="rkward2.png" title="rkward2.png" />
</a>

<p>You can also use rkward to import data: R provides a series of functions (like <code>read.table</code>) to load data sets (usually comma- or tab-delimited text files). rkward provides a complete GUI to those functions, which is shown in the screenshot above. Notice that for working, it requires PHP (the line command version).</p>

<a href="http://www.dennogumi.org/wp-content/gallery/screenshots/rkward5.png?cda6c1" title="" class="shutterset_singlepic266" >
	<img class="ngg-singlepic ngg-center" src="http://www.dennogumi.org/wp-content/gallery/cache/266__320x240_rkward5.png?cda6c1" alt="rkward5.png" title="rkward5.png" />
</a>

<p>Ok, we have data loaded. Now we may want to do some operations: rkward provides front-ends to many of R&#8217;s statistical functions. In the screenshot, we can see the GUI for a two-variable t-test. Notice how it shows also the code, so the most experienced R people can view exactly what it does.</p>
<p>Like with statistics, R has powerful support for graphics, and even in this case rkward offers some frontends, for example histograms, boxplots, and scatter plots. You can also plot all kinds of distributions.</p>

<a href="http://www.dennogumi.org/wp-content/gallery/screenshots/rkward3.png?cda6c1" title="" class="shutterset_singlepic265" >
	<img class="ngg-singlepic ngg-center" src="http://www.dennogumi.org/wp-content/gallery/cache/265__320x240_rkward3.png?cda6c1" alt="rkward3.png" title="rkward3.png" />
</a>

<p>Lastly, rkward can manage your R packages (R package management is akin to one of a Linux distribution), and als your package sources. You can install or upgrade packages, and select where they&#8217;ll get installed to.</p>
<p><strong>Conclusions</strong></p>
<p>rkward is a nice frontend for the R programming language, which adds a GUI with the power of KDE to R. Unfortunately the program is still somewhat unstable (also shown by a warning when you run it) and its main developer has currently very little time to work on it. In case you may want to help, you can hop to the r<a title="rkward-devel" href="http://sourceforge.net/mailarchive/forum.php?forum_name=rkward-devel">kward-devel mailing list.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dennogumi.org/2009/02/science-and-kde-rkward/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using xcache (Feed is rejected)
Page Caching using xcache
Database Caching using xcache
Object Caching 403/439 objects using xcache

Served from: www.dennogumi.org @ 2012-02-05 06:10:29 -->
