<?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>R-statistics blog &#187; stackoverflow</title>
	<atom:link href="http://www.r-statistics.com/tag/stackoverflow/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.r-statistics.com</link>
	<description>Writing about statistics with R, and open source stuff (software, data, community)</description>
	<lastBuildDate>Mon, 30 Jan 2012 07:45:09 +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>StackOverFlow and MetaOptimize are battling to be the #1 &#8220;Statistical Analysis Q&amp;A website” &#8211; to whom would you signup?</title>
		<link>http://www.r-statistics.com/2010/07/statistical-analysis-qa-website-did-stackoverflow-just-lose-it-to-metaoptimize-and-is-it-good-or-bad/</link>
		<comments>http://www.r-statistics.com/2010/07/statistical-analysis-qa-website-did-stackoverflow-just-lose-it-to-metaoptimize-and-is-it-good-or-bad/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 21:55:05 +0000</pubDate>
		<dc:creator>Tal Galili</dc:creator>
				<category><![CDATA[R community]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[area51]]></category>
		<category><![CDATA[artificial intelligence]]></category>
		<category><![CDATA[data mining]]></category>
		<category><![CDATA[data visualization]]></category>
		<category><![CDATA[information retrieval]]></category>
		<category><![CDATA[machine learning]]></category>
		<category><![CDATA[natural language processing]]></category>
		<category><![CDATA[Q&A website]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[stack exchange]]></category>
		<category><![CDATA[stackoverflow]]></category>
		<category><![CDATA[statistical modeling]]></category>
		<category><![CDATA[text analysis]]></category>

		<guid isPermaLink="false">http://www.r-statistics.com/?p=442</guid>
		<description><![CDATA[A new statistical analysis Q&#38;A website launched While the proposal for a statistical analysis Q&#38;A website on area51 (stackexchange) is taking it&#8217;s time, and the website is still collecting people who will commit to it, Joseph Turian, who seems a nice guy from his various comments online, seem to feel this website is not what [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.r-statistics.com/2010/07/statistical-analysis-qa-website-did-stackoverflow-just-lose-it-to-metaoptimize-and-is-it-good-or-bad/&amp;layout=box_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://www.r-statistics.com/2010/07/statistical-analysis-qa-website-did-stackoverflow-just-lose-it-to-metaoptimize-and-is-it-good-or-bad/"></g:plusone></div></div><h3>A new statistical analysis Q&amp;A website launched</h3>
<p>While <a href="http://bit.ly/aDuRKV">the proposal for a statistical analysis Q&amp;A website</a> on area51 (stackexchange) is taking it&#8217;s time, and the website is still collecting people who will commit to it,<br />
<a href="http://www-etud.iro.umontreal.ca/~turian/">Joseph Turian</a>, who seems a nice guy from his various comments online, seem to feel this website is not what the community needs and that we shouldn&#8217;t hold up on our questions for the website to go online.  Therefore, Joseph is pushing with all his might his newest creation &#8220;<a href="http://metaoptimize.com/qa">MetaOptimize QA</a>&#8220;, a <a href="http://StackOverFlow.com">StackOverFlow </a>like website for (long list follows): <em>machine learning, natural language processing, artificial intelligence, text analysis, information retrieval, search, data mining, statistical modeling, and data visualization</em>.<br />
With all the bells and whistles that the <a href="http://www.osqa.net/">OSQA framework</a> (an open source stackoverflow clone, and more, system) can offer (you know, rankings, badges and so on).</p>
<p>Is this new website better then the area51 website?  Will all the people go to just one of the two websites. or will we end up with two places that attracts more people then we had to begin with?  These are the questions that come to mind when faced with the story in front of us.</p>
<p>My own suggestion is to try both websites (<a href="http://bit.ly/aDuRKV">the stackoverflow statistical analysis website to come</a> and &#8220;<a href="http://metaoptimize.com/qa">MetaOptimize QA</a>&#8220;) and let time tell.</p>
<p>More info on this story bellow.</p>
<h3>MetaOptimize online impact so far</h3>
<p>The need for such a Q&amp;A site is clearly evident.  With just several days after being promoted online, MetaOptimize has claimed the eyes of almost 300 users, submitting 59 questions and 129 answers.<br />
Already many bloggers in the statistical community have contributed their voices with encouraging posts, here is just a collection of the post I was able to find with some googling:</p>
<ul>
<li><a href="http://hunch.net/?p=1425">http://hunch.net/?p=1425</a></li>
<li><a href="http://ebiquity.umbc.edu/blogger/2010/06/30/training-examples-qa-stackoverflow-for-nlp-and-ml/">http://ebiquity.umbc.edu/blogger/2010/06/30/training-examples-qa-stackoverflow-for-nlp-and-ml/</a></li>
<li><a href="http://lingpipe-blog.com/2010/06/29/training-examples-a-stack-overflow-for-nlp-and-ml-and/">http://lingpipe-blog.com/2010/06/29/training-examples-a-stack-overflow-for-nlp-and-ml-and/</a></li>
<li><a href="http://www.stat.columbia.edu/~cook/movabletype/archives/2010/06/question_answer.html">http://www.stat.columbia.edu/~cook/movabletype/archives/2010/06/question_answer.html</a></li>
<li><a href="http://kaggle.com/blog/2010/07/02/new-machine-learning-and-natural-language-processing-qa-site/">http://kaggle.com/blog/2010/07/02/new-machine-learning-and-natural-language-processing-qa-site/</a></li>
<li><a href="http://www.jroller.com/otis/entry/metaoptimize_com_q_a_site">http://www.jroller.com/otis/entry/metaoptimize_com_q_a_site</a></li>
<li><a href="http://sbseminar.wordpress.com/2010/06/17/statistics-version-of-mathoverflow-looking-for-beta-testers/">http://sbseminar.wordpress.com/2010/06/17/statistics-version-of-mathoverflow-looking-for-beta-testers/</a></li>
<li><a href="http://myumbc3.my.umbc.edu/news/1841">http://myumbc3.my.umbc.edu/news/1841</a></li>
<li><a href="http://ebiquity.umbc.edu/blogger/2010/06/30/training-examples-qa-stackoverflow-for-nlp-and-ml/">http://ebiquity.umbc.edu/blogger/2010/06/30/training-examples-qa-stackoverflow-for-nlp-and-ml/</a></li>
</ul>
<h3>But is it goos to have two websites?</h3>
<p>But wait, didn&#8217;t we just start pushing forward another <a href="http://www.r-statistics.com/2010/06/a-new-qa-website-for-data-analysis-based-on-stackoverflow-engine-is-waiting-for-you/">statistical Q&amp;A website two weeks ago</a>?  I am talking about the <strong><a href="http://bit.ly/aDuRKV">Stack Exchange Q&amp;A site proposal: Statistical Analysis</a>.</strong></p>
<p>So what should we (the community of statistical minded people) to do the next time we have a question?</p>
<p>Should we wait for Stack Exchange offer for a new website to start?  Or should we start using MetaOptimize?</p>
<p><strong>Update: <span style="font-weight: normal;">after lengthy e-mail exchange with Joseph (the person who founded MetaOptimize), I decided to erase what I originally wrote as my doubts, and instead give a Q&amp;A session that him and I have had in the e-mails exchange.  It is a bit edited from what was originally, and some of the content will probably get updated &#8211; so if you are into this subject, check in again in a few hours <img src='http://www.r-statistics.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></strong></p>
<p><del datetime="2010-07-03T09:28:16+00:00"><br />
Honestly, I am split in two (and <a href="http://www-etud.iro.umontreal.ca/~turian/">Joseph</a>, I do hope you&#8217;ll take this in a positive way, since personally I feel confident you are a good guy).  I very strongly believe in the need and value of such a Q&amp;A website.  Yet I am wondering how I feel about such a website being hosted as MetaOptimize and outside the hands of the stackoverflow guys.<br />
On the one hand, open source lovers (like myself) tend to like decentralization and reliance on OSS (open source software) solutions (such as the one <a href="http://www.osqa.net/">OSQA framework</a> offers).  On the other hand, I do believe that the stackoverflow people  have (much) more experience in handling such websites then Joseph.  I can very easily trust them to do regular database backups, share the websites database dumps with the general community, smoothly test and upgrade to provide new features, and generally speaking perform in a more  experienced way with the online Q&amp;A community.<br />
It doesn&#8217;t mean that Joseph won&#8217;t do a great job, personally I hope he will.</del></p>
<h3><strong><span style="text-decoration: underline;">Q&amp;A session with Joseph Turian (MetaOptimize founder)</span></strong></h3>
<p><strong><span style="text-decoration: underline;">Tal</span></strong>: Let&#8217;s start with the easy question, should I worry about technical issues in the website (like, for example, backups)?</p>
<p><span style="text-decoration: underline;"><strong>Joseph</strong></span>:</p>
<div id="_mcePaste">The OSQA team (backed by DZone) have got my back. They have been very helpful since day one to all OSQA users, and have given me a lot of support. Thanks, especially Rick and Hernani!</div>
<p>They provide email and chat support for OSQA users.</p>
<p>I will commit to putting up regular automatic database dumps, whenever the OSQA team implements it:<br />
<a href="http://meta.osqa.net/questions/3120/how-do-i-offer-database-dumps">http://meta.osqa.net/questions/3120/how-do-i-offer-database-dumps</a><br />
If, in six months, they don&#8217;t have this feature as part of their core, and someone (e.g. you) emails me reminding me that they want a dump, I will manually do a database dump and strip the user table.</p>
<p>Also, I&#8217;ve got a scheduled daily database dump that is mirrored to Amazon S3.</p>
<p><span style="text-decoration: underline;"><strong><strong><span style="text-decoration: underline;">Tal</span></strong>:</strong></span> Why did you start MetaOptimize instead of supporting the area51 proposal?<br />
<span style="text-decoration: underline;"><strong>Joseph</strong></span>:</p>
<ol>
<li><span style="font-size: 13.1944px;">On Area51, people asked to have AI merged with ML, and ML merged with statistical analysis, but their requests seemed to be ignored. This seemed like a huge disservice to these communities.</span></li>
<li><span style="font-size: 13.1944px;">Area 51 didn&#8217;t have academics in ML + NLP. I know from experience it&#8217;s hard to get them to buy in to new technology. So why would I risk my reputation getting them to sign up for Area 51, when I know that I will get a 1% conversion? They aren&#8217;t early adopters interested in the process, many are late adopters who won&#8217;t sign up for something until they have too.</span></li>
<li><span style="font-size: 13.1944px;">If the Area 51 sites had a strong newbie bent, which is what it seemed like the direction was going, then the academic experts definitely wouldn&#8217;t waste their time. It would become a support<br />
</span><span style="font-size: 13.1944px;">community for newbies, without core expert discussion.  So basically, I know that I and a lot of my colleagues wanted the site I built. And I felt like area 51 was shaping the communities really incorrectly in several respects, and was also taking a while.  I could have fought an institutional process and maybe gotten half the results above and it took a few months, or I could just build the site and invite my friends, and shape the community correctly.</span></li>
</ol>
<p>Besides that, there are also personal motives:</p>
<ul>
<li><span style="font-size: 13.1944px;">I wanted the recognition for having a good vision for the community, and driving forward something they really like.</span></li>
<li><span style="font-size: 13.1944px;">I wanted to experiment with some NLP and ML extensions for the Q+A software, to help organize the information better. Not possible on a closed platform.</span></li>
</ul>
<p><span style="text-decoration: underline;"><strong><strong><span style="text-decoration: underline;">Tal</span></strong>:</strong></span> Me (and maybe some other people) fear that this might fork the people in the field to two websites, instead of bringing them together.  What are your thoughts about that?<br />
<span style="text-decoration: underline;"><strong>Joseph</strong></span>:<br />
How am I forking the community? I&#8217;m bringing a bunch of people in who wouldn&#8217;t have even been part of the Area 51 community.<br />
Area 51 was going to fork it into five communities: stat analysis, ML, NLP, AI, and data mining.  And then a lot fewer people would have been involved.</p>
<p><span style="text-decoration: underline;"><strong><strong><span style="text-decoration: underline;">Tal</span></strong>:</strong></span> What are the things that people who support your website are saying?<br />
<span style="text-decoration: underline;"><strong>Joseph</strong></span>:<br />
Here are some quotes about my site:</p>
<blockquote><p>Philip Resnick (UMD): &#8220;Looking at the questions being asked, the people responding, and the quality of the discussion, I can already see this becoming the go-to place for those &#8216;under the hood&#8217; details<br />
you rarely see in the textbooks or conference papers. This site is going to save a lot of people an awful lot of time and frustration.&#8221;</p>
<p>Aria Haghighi (Berkeley): &#8220;Both NLP and ML have a lot of folk wisdom about what works and what doesn&#8217;t. A site like this is crucial for facilitating the sharing and validation of this collective knowledge.&#8221;</p>
<p>Alexandre Passos (Unicamp): &#8220;Really thank you for that. As a machine learning phd student from somewhere far from most good research centers (I&#8217;m in brazil, and how many brazillian ML papers have you<br />
seen in NIPS/ICML recently?), I struggle a lot with this folk wisdom. Most professors around here haven&#8217;t really interacted enough with the international ML community to be up to date&#8221;<br />
(http://news.ycombinator.com/item?id=1476247)</p>
<p>Ryan McDonald (Google): &#8220;A tool like this will help disseminate and archive the tricks and best practices that are common in NLP/ML, but are rarely written about at length in papers.&#8221;</p>
<p>esoom on Reddit: &#8220;This is awesome. I&#8217;m really impressed by the quality of some of the answers, too. Within five minutes of skimming the site, I learned a neat trick that isn&#8217;t widely discussed in the literature.&#8221;<br />
(http://www.reddit.com/r/MachineLearning/comments/ckw5k/stackoverflow_for_machine_learning_and_natural/c0tb3gc)</p>
<p><span style="text-decoration: underline;"><strong><strong><span style="text-decoration: underline;">Tal</span></strong>:</strong></span> In order to be fair to area51 work, they have gotten wonderful responses for the &#8220;statistical analysis&#8221; proposal as well (<a href="http://bit.ly/aDuRKV">see it here</a>)<br />
I have also contacted area51 directly and asked them and invited them to come and join the discussion.  I&#8217;ll update this post with their reply.</p></blockquote>
<h3><span style="text-decoration: underline;">So what&#8217;s next?</span></h3>
<p><del datetime="2010-07-03T08:08:02+00:00">I don&#8217;t know.<br />
If the Stack Exchange website where to launch today, I would probably focus on using it and hint to the site for MetaOptimize (for the reasons I just mentioned, and also for some that Rob Hyndman maintained when he <a href="http://robjhyndman.com/researchtips/stack-exchange-for-statistical-analysis-needs-you/">first wrote on the subject</a>).<br />
If the stack exchange version of the website where to start in a few weeks, I would probably sit on the fence and see if people are using it.  I suspect that by that time, there wouldn&#8217;t be many people left to populate it (but I could always be wrong).<br />
And what if the website where to start in a week, what then?  I have no clue.</del><br />
Good question.<br />
My current feeling is that I am glad to let this play out.<br />
It seems this is a good case study for some healthy competition between platforms and models (OSQA vs stackoverflow/area51-system) &#8211; one that I hope will generate more good features from both companies.  And also will make both parties work hard to get people to participate.<br />
It also seems that this situation is getting many people in our field to be approached with the same idea (Q&amp;A website).  After Joseph input on the subject, I am starting to think that maybe at the end of the day this will benefit all of us.  Instead of forking one community into two, maybe what we&#8217;ll end up with is getting more (experienced) people online (into two locations) that would otherwise would have stayed in the shadows.</p>
<p>The verdict is still out, but I am a bit more optimistic than I was when first writing this post.  I&#8217;ll update this post after getting more input from people.</p>
<p>And as always &#8211; I would love to know <strong><span style="text-decoration: underline;">your thoughts</span></strong> on the subject.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.r-statistics.com/2010/07/statistical-analysis-qa-website-did-stackoverflow-just-lose-it-to-metaoptimize-and-is-it-good-or-bad/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>A new Q&amp;A website for Data-Analysis (based on StackOverFlow engine) &#8211; is waiting for you</title>
		<link>http://www.r-statistics.com/2010/06/a-new-qa-website-for-data-analysis-based-on-stackoverflow-engine-is-waiting-for-you/</link>
		<comments>http://www.r-statistics.com/2010/06/a-new-qa-website-for-data-analysis-based-on-stackoverflow-engine-is-waiting-for-you/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 13:29:55 +0000</pubDate>
		<dc:creator>Tal Galili</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[R community]]></category>
		<category><![CDATA[Q&A]]></category>
		<category><![CDATA[R comunity]]></category>
		<category><![CDATA[R Q&A]]></category>
		<category><![CDATA[stackoverflow]]></category>

		<guid isPermaLink="false">http://www.r-statistics.com/?p=415</guid>
		<description><![CDATA[The bottom line of this post is for you to go to: Stack Exchange Q&#38;A site proposal: Statistical Analysis And commit yourself to using the website for asking and answering questions. 144 peoples already committed to using the website, we need 356 more&#8230; If you are looking for the reasons to do so &#8211; read [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.r-statistics.com/2010/06/a-new-qa-website-for-data-analysis-based-on-stackoverflow-engine-is-waiting-for-you/&amp;layout=box_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://www.r-statistics.com/2010/06/a-new-qa-website-for-data-analysis-based-on-stackoverflow-engine-is-waiting-for-you/"></g:plusone></div></div><p><strong>The bottom line of this post is for you to go to:<br />
<a href="http://bit.ly/aDuRKV">Stack Exchange Q&amp;A site proposal: Statistical Analysis </a><br />
And commit yourself to using the website for asking and answering questions. </strong>144 peoples already committed to using the website, we need 356 more&#8230; <img src='http://www.r-statistics.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
If you are looking for the reasons to do so &#8211; read on&#8230;</p>
<h3>What is the StackOverFlow Q&amp;A website about?</h3>
<p><a href="http://StackOverFlow.com">StackOverFlow.com</a> (&#8220;SO&#8221; for short) is a programming Q &amp; A site that&#8217;s free. Free to ask questions, free to answer questions, free to read. Free, And fast.</p>
<p>For the R community, SO offers a growing database of <a href="http://stackoverflow.com/questions/tagged/R">R related questions and answer</a> (click the link to check them out).</p>
<p>You might be asking yourself what&#8217;s so special about SO over other available resources such as <a href="http://www.r-project.org/mail.html">R mailing lists</a>, <a href="http://www.r-bloggers.com/">R blogs</a>,<a href="http://rwiki.sciviews.org/doku.php"> R wiki</a> and so on?<br />
That is a great question.<br />
<a href="http://www.r-statistics.com/wp-content/uploads/2010/06/venn-diagram.png"><img class="alignnone size-full wp-image-416" title="venn-diagram" src="http://www.r-statistics.com/wp-content/uploads/2010/06/venn-diagram.png" alt="" width="440" height="431" /></a><br />
The answer is that SO succeeds in doing a great job synthesizing aspects of Wikis, Blogs, Forums, and Digg/Reddit to offer a very powerful Q&amp;A website.</p>
<p>In SO, the new questions are like forum/blog posts (A main text with comments/answers).  After someone answers a question, other users can give a thumb-up or a thumb-down to the answer (like digg/reddit).  And all content can be edited, like a wiki page, by the users (provided the user has enough &#8220;karma points&#8221;).<br />
You also get badges (&#8220;awards&#8221;) for a bunch of actions (like coming to the website every day for a month.  Giving an answer that got X amount of thumb-ups and so on).  The awards allows someone who is asking a question to see how much the person who had answered him has good reputation (in terms of acceptance/appreciation of his answers by other SO members).<br />
It also offers a small (but effective) ego-boost for the person who gives answers.</p>
<h3>So if StackOverFlow is so great &#8211; what is this new website you wrote about in the title?</h3>
<p>Well, StackOverFlow has one limitation.  It deals ONLY with programming questions.  Other questions like:</p>
<ul>
<li>Which of the following three graphics best displays this data set? Why?</li>
<li>Can you give an example of where I might prefer to use a z-test vs a t-test?</li>
<li>What is the relationship between Bayesian and neural networks?</li>
</ul>
<p>Will not be answered, and the threads will get closed as being &#8220;off topic&#8221;.  Why? because such questions are dealing with: statistics, data analysis, data mining, data visualization &#8211; But in no means in programming.</p>
<p>So there is no StackOverFlow-like Q&amp;A website for data analysis&#8230; Until now!</p>
<p>In the past few weeks,<a href="http://area51.stackexchange.com/users/14/rob-hyndman"> Rob Hyndman</a> and other users, have made much effort to push the creation of a new website, based on the StackOverFlow engine, to allow for statistically related Q&amp;A.<br />
His proposal for a new website is almost complete.  All it need is for you (yes you), to go to the following link:<br />
<a href="http://bit.ly/aDuRKV">Stack Exchange Q&amp;A site proposal: Statistical Analysis </a><br />
And commit yourself to the website (that is, click the button called &#8220;commit&#8221; &#8211; so to declare that you will have interest in reading, asking and answering questions on such a website)</p>
<p>Once a <del datetime="2010-06-18T04:54:51+00:00">few more tens</del> 379 more people will commit &#8211; the website will go online!</p>
<p>Hope to see you there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.r-statistics.com/2010/06/a-new-qa-website-for-data-analysis-based-on-stackoverflow-engine-is-waiting-for-you/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Correlation scatter-plot matrix for ordered-categorical data</title>
		<link>http://www.r-statistics.com/2010/04/correlation-scatter-plot-matrix-for-ordered-categorical-data/</link>
		<comments>http://www.r-statistics.com/2010/04/correlation-scatter-plot-matrix-for-ordered-categorical-data/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 21:37:26 +0000</pubDate>
		<dc:creator>Tal Galili</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[visualization]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[correlation]]></category>
		<category><![CDATA[correlation matrix]]></category>
		<category><![CDATA[correlation scatter plot]]></category>
		<category><![CDATA[non-parametric]]></category>
		<category><![CDATA[non-parametric test]]></category>
		<category><![CDATA[nonparametric]]></category>
		<category><![CDATA[nonparametric test]]></category>
		<category><![CDATA[R code]]></category>
		<category><![CDATA[scatter plot]]></category>
		<category><![CDATA[scatter plot matrix]]></category>
		<category><![CDATA[spearman correlation]]></category>
		<category><![CDATA[spearman test]]></category>
		<category><![CDATA[stackoverflow]]></category>
		<category><![CDATA[survey]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.r-statistics.com/?p=256</guid>
		<description><![CDATA[When analyzing a questionnaire, one often wants to view the correlation between two or more Likert questionnaire item&#8217;s (for example: two ordered categorical vectors ranging from 1 to 5). When dealing with several such Likert variable&#8217;s, a clear presentation of all the pairwise relation&#8217;s between our variable can be achieved by inspecting the (Spearman) correlation [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.r-statistics.com/2010/04/correlation-scatter-plot-matrix-for-ordered-categorical-data/&amp;layout=box_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://www.r-statistics.com/2010/04/correlation-scatter-plot-matrix-for-ordered-categorical-data/"></g:plusone></div></div><p>When analyzing a questionnaire, one often wants to view the correlation between two or more <a href="http://en.wikipedia.org/wiki/Likert_scale">Likert questionnaire</a> item&#8217;s (for example: two ordered categorical vectors ranging from 1 to 5).</p>
<p>When dealing with several such Likert variable&#8217;s, a clear presentation of all the pairwise relation&#8217;s between our variable can be achieved by inspecting the (Spearman) correlation matrix (easily achieved in R by using the &#8220;cor.test&#8221; command on a matrix of variables).<br />
Yet, a challenge appears once we wish to plot this correlation matrix.  The challenge stems from the fact that the classic presentation for a correlation matrix is a <strong>scatter plot matrix</strong> &#8211; but scatter plots don&#8217;t (usually) work well for ordered categorical vectors since the dots on the scatter plot often overlap each other.</p>
<p>There are four solution for the point-overlap problem that I know of:</p>
<ol>
<li>Jitter the data a bit to give a sense of the &#8220;density&#8221; of the points</li>
<li>Use a color spectrum to represent when a point actually represent &#8220;many points&#8221;</li>
<li>Use different points sizes to represent when there are &#8220;many points&#8221; in the location of that point</li>
<li>Add a LOWESS (or LOESS) line to the scatter plot &#8211; to show the trend of the data</li>
</ol>
<p>In this post I will offer the code for the  a solution that uses solution 3-4 (and possibly 2, please read this post comments). Here is the output (click to see a larger image):</p>
<p><a href="http://www.r-statistics.com/wp-content/uploads/2010/04/scatter-plot-correlation-matrix.png"><img class="alignnone size-full wp-image-257" title="scatter plot correlation matrix" src="http://www.r-statistics.com/wp-content/uploads/2010/04/scatter-plot-correlation-matrix.png" alt="" width="550"/></a></p>
<p>And here is the code to produce this plot:</p>
<p><span id="more-256"></span></p>
<h3>R code for producing a Correlation scatter-plot matrix &#8211; for ordered-categorical data</h3>
<p><strong>Note</strong> that this code will work fine for continues data points (although I might suggest to enlarge the &#8220;point.size.rescale&#8221; parameter to something bigger then 1.5 in the &#8220;panel.smooth.ordered.categorical&#8221; function)</p>

<div class="wp_codebox"><table><tr id="p2562"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
</pre></td><td class="code" id="p256code2"><pre class="rsplus" style="font-family:monospace;"><span style="color: #228B22;"># -----------------</span>
<span style="color: #228B22;"># Functions</span>
<span style="color: #228B22;"># -----------------</span>
&nbsp;
panel.<span style="">cor</span>.<span style="">ordered</span>.<span style="">categorical</span> <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">function</span><span style="color: #080;">&#40;</span>x, y, digits<span style="color: #080;">=</span><span style="color: #ff0000;">2</span>, prefix<span style="color: #080;">=</span><span style="color: #ff0000;">&quot;&quot;</span>, cex.<span style="">cor</span><span style="color: #080;">&#41;</span> 
<span style="color: #080;">&#123;</span>
&nbsp;
    usr <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">par</span><span style="color: #080;">&#40;</span><span style="color: #ff0000;">&quot;usr&quot;</span><span style="color: #080;">&#41;</span><span style="color: #080;">;</span> <span style="color: #0000FF; font-weight: bold;">on.<span style="">exit</span></span><span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">par</span><span style="color: #080;">&#40;</span>usr<span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span> 
    <span style="color: #0000FF; font-weight: bold;">par</span><span style="color: #080;">&#40;</span>usr <span style="color: #080;">=</span> <span style="color: #0000FF; font-weight: bold;">c</span><span style="color: #080;">&#40;</span><span style="color: #ff0000;">0</span>, <span style="color: #ff0000;">1</span>, <span style="color: #ff0000;">0</span>, <span style="color: #ff0000;">1</span><span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span> 
&nbsp;
    r <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">abs</span><span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">cor</span><span style="color: #080;">&#40;</span>x, y, method <span style="color: #080;">=</span> <span style="color: #ff0000;">&quot;spearman&quot;</span><span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span> <span style="color: #228B22;"># notive we use spearman, non parametric correlation here</span>
    r.<span style="">no</span>.<span style="">abs</span> <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">cor</span><span style="color: #080;">&#40;</span>x, y, method <span style="color: #080;">=</span> <span style="color: #ff0000;">&quot;spearman&quot;</span><span style="color: #080;">&#41;</span>
&nbsp;
&nbsp;
    txt <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">format</span><span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">c</span><span style="color: #080;">&#40;</span>r.<span style="">no</span>.<span style="">abs</span> , <span style="color: #ff0000;">0.123456789</span><span style="color: #080;">&#41;</span>, digits<span style="color: #080;">=</span>digits<span style="color: #080;">&#41;</span><span style="color: #080;">&#91;</span><span style="color: #ff0000;">1</span><span style="color: #080;">&#93;</span> 
    txt <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">paste</span><span style="color: #080;">&#40;</span>prefix, txt, sep<span style="color: #080;">=</span><span style="color: #ff0000;">&quot;&quot;</span><span style="color: #080;">&#41;</span> 
    <span style="color: #0000FF; font-weight: bold;">if</span><span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">missing</span><span style="color: #080;">&#40;</span>cex.<span style="">cor</span><span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span> cex <span style="color: #080;">&lt;-</span> <span style="color: #ff0000;">0.8</span><span style="color: #080;">/</span><span style="color: #0000FF; font-weight: bold;">strwidth</span><span style="color: #080;">&#40;</span>txt<span style="color: #080;">&#41;</span> 
&nbsp;
    test <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">cor.<span style="">test</span></span><span style="color: #080;">&#40;</span>x,y, method <span style="color: #080;">=</span> <span style="color: #ff0000;">&quot;spearman&quot;</span><span style="color: #080;">&#41;</span> 
    <span style="color: #228B22;"># borrowed from printCoefmat</span>
    Signif <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">symnum</span><span style="color: #080;">&#40;</span>test$p.<span style="">value</span>, corr <span style="color: #080;">=</span> FALSE, na <span style="color: #080;">=</span> FALSE, 
                  cutpoints <span style="color: #080;">=</span> <span style="color: #0000FF; font-weight: bold;">c</span><span style="color: #080;">&#40;</span><span style="color: #ff0000;">0</span>, <span style="color: #ff0000;">0.001</span>, <span style="color: #ff0000;">0.01</span>, <span style="color: #ff0000;">0.05</span>, <span style="color: #ff0000;">0.1</span>, <span style="color: #ff0000;">1</span><span style="color: #080;">&#41;</span>,
                  <span style="color: #0000FF; font-weight: bold;">symbols</span> <span style="color: #080;">=</span> <span style="color: #0000FF; font-weight: bold;">c</span><span style="color: #080;">&#40;</span><span style="color: #ff0000;">&quot;***&quot;</span>, <span style="color: #ff0000;">&quot;**&quot;</span>, <span style="color: #ff0000;">&quot;*&quot;</span>, <span style="color: #ff0000;">&quot;.&quot;</span>, <span style="color: #ff0000;">&quot; &quot;</span><span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span> 
&nbsp;
    <span style="color: #0000FF; font-weight: bold;">text</span><span style="color: #080;">&#40;</span><span style="color: #ff0000;">0.5</span>, <span style="color: #ff0000;">0.5</span>, txt, cex <span style="color: #080;">=</span> cex <span style="color: #080;">*</span> r<span style="color: #080;">&#41;</span> 
    <span style="color: #0000FF; font-weight: bold;">text</span><span style="color: #080;">&#40;</span>.8, .8, Signif, cex<span style="color: #080;">=</span>cex, <span style="color: #0000FF; font-weight: bold;">col</span><span style="color: #080;">=</span><span style="color: #ff0000;">2</span><span style="color: #080;">&#41;</span> 
<span style="color: #080;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
panel.<span style="">smooth</span>.<span style="">ordered</span>.<span style="">categorical</span> <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">function</span> <span style="color: #080;">&#40;</span>x, y, <span style="color: #0000FF; font-weight: bold;">col</span> <span style="color: #080;">=</span> <span style="color: #0000FF; font-weight: bold;">par</span><span style="color: #080;">&#40;</span><span style="color: #ff0000;">&quot;col&quot;</span><span style="color: #080;">&#41;</span>, bg <span style="color: #080;">=</span> NA, pch <span style="color: #080;">=</span> <span style="color: #0000FF; font-weight: bold;">par</span><span style="color: #080;">&#40;</span><span style="color: #ff0000;">&quot;pch&quot;</span><span style="color: #080;">&#41;</span>, 
												cex <span style="color: #080;">=</span> <span style="color: #ff0000;">1</span>, col.<span style="">smooth</span> <span style="color: #080;">=</span> <span style="color: #ff0000;">&quot;red&quot;</span>, span <span style="color: #080;">=</span> <span style="color: #ff0000;">2</span><span style="color: #080;">/</span><span style="color: #ff0000;">3</span>, iter <span style="color: #080;">=</span> <span style="color: #ff0000;">3</span>, 
												point.<span style="">size</span>.<span style="">rescale</span> <span style="color: #080;">=</span> <span style="color: #ff0000;">1.5</span>, ...<span style="color: #080;">&#41;</span> 
<span style="color: #080;">&#123;</span>
	<span style="color: #228B22;">#require(colorspace)</span>
    <span style="color: #0000FF; font-weight: bold;">require</span><span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">reshape</span><span style="color: #080;">&#41;</span>
    z <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">merge</span><span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">data.<span style="">frame</span></span><span style="color: #080;">&#40;</span>x,y<span style="color: #080;">&#41;</span>, melt<span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">table</span><span style="color: #080;">&#40;</span>x ,y<span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span>,<span style="color: #0000FF; font-weight: bold;">sort</span> <span style="color: #080;">=</span><span style="color: #0000FF; font-weight: bold;">F</span><span style="color: #080;">&#41;</span>$value
    <span style="color: #228B22;">#the.col &lt;- heat_hcl(length(x))[z]</span>
    z <span style="color: #080;">&lt;-</span> point.<span style="">size</span>.<span style="">rescale</span><span style="color: #080;">*</span>z<span style="color: #080;">/</span> <span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">length</span><span style="color: #080;">&#40;</span>x<span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span> <span style="color: #228B22;"># notice how we rescale the dots accourding to the maximum z could have gotten</span>
&nbsp;
    <span style="color: #0000FF; font-weight: bold;">symbols</span><span style="color: #080;">&#40;</span> x, y,  circles <span style="color: #080;">=</span> z,<span style="color: #228B22;">#rep(0.1, length(x)), #sample(1:2, length(x), replace = T) ,</span>
			inches<span style="color: #080;">=</span><span style="color: #0000FF; font-weight: bold;">F</span>, bg<span style="color: #080;">=</span> <span style="color: #ff0000;">&quot;grey&quot;</span>,<span style="color: #228B22;">#the.col ,</span>
			fg <span style="color: #080;">=</span> bg, add <span style="color: #080;">=</span> <span style="color: #0000FF; font-weight: bold;">T</span><span style="color: #080;">&#41;</span>
&nbsp;
    <span style="color: #228B22;"># points(x, y, pch = pch, col = col, bg = bg, cex = cex)</span>
    ok <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">is.<span style="">finite</span></span><span style="color: #080;">&#40;</span>x<span style="color: #080;">&#41;</span> <span style="color: #080;">&amp;</span> <span style="color: #0000FF; font-weight: bold;">is.<span style="">finite</span></span><span style="color: #080;">&#40;</span>y<span style="color: #080;">&#41;</span>
    <span style="color: #0000FF; font-weight: bold;">if</span> <span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">any</span><span style="color: #080;">&#40;</span>ok<span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span> 
        <span style="color: #0000FF; font-weight: bold;">lines</span><span style="color: #080;">&#40;</span>stats<span style="color: #080;">::</span><span style="color: #0000FF; font-weight: bold;">lowess</span><span style="color: #080;">&#40;</span>x<span style="color: #080;">&#91;</span>ok<span style="color: #080;">&#93;</span>, y<span style="color: #080;">&#91;</span>ok<span style="color: #080;">&#93;</span>, f <span style="color: #080;">=</span> span, iter <span style="color: #080;">=</span> iter<span style="color: #080;">&#41;</span>, 
            <span style="color: #0000FF; font-weight: bold;">col</span> <span style="color: #080;">=</span> col.<span style="">smooth</span>, ...<span style="color: #080;">&#41;</span>
<span style="color: #080;">&#125;</span>
&nbsp;
&nbsp;
panel.<span style="">hist</span> <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">function</span><span style="color: #080;">&#40;</span>x, ...<span style="color: #080;">&#41;</span>
<span style="color: #080;">&#123;</span>
    usr <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">par</span><span style="color: #080;">&#40;</span><span style="color: #ff0000;">&quot;usr&quot;</span><span style="color: #080;">&#41;</span><span style="color: #080;">;</span> <span style="color: #0000FF; font-weight: bold;">on.<span style="">exit</span></span><span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">par</span><span style="color: #080;">&#40;</span>usr<span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span>
    <span style="color: #0000FF; font-weight: bold;">par</span><span style="color: #080;">&#40;</span>usr <span style="color: #080;">=</span> <span style="color: #0000FF; font-weight: bold;">c</span><span style="color: #080;">&#40;</span>usr<span style="color: #080;">&#91;</span><span style="color: #ff0000;">1</span><span style="color: #080;">:</span><span style="color: #ff0000;">2</span><span style="color: #080;">&#93;</span>, <span style="color: #ff0000;">0</span>, <span style="color: #ff0000;">1.5</span><span style="color: #080;">&#41;</span> <span style="color: #080;">&#41;</span>
    h <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">hist</span><span style="color: #080;">&#40;</span>x, <span style="color: #0000FF; font-weight: bold;">plot</span> <span style="color: #080;">=</span> FALSE, br <span style="color: #080;">=</span> <span style="color: #ff0000;">20</span><span style="color: #080;">&#41;</span>
    breaks <span style="color: #080;">&lt;-</span> h$breaks<span style="color: #080;">;</span> nB <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">length</span><span style="color: #080;">&#40;</span>breaks<span style="color: #080;">&#41;</span>
    y <span style="color: #080;">&lt;-</span> h$counts<span style="color: #080;">;</span> y <span style="color: #080;">&lt;-</span> y<span style="color: #080;">/</span><span style="color: #0000FF; font-weight: bold;">max</span><span style="color: #080;">&#40;</span>y<span style="color: #080;">&#41;</span>
    <span style="color: #0000FF; font-weight: bold;">rect</span><span style="color: #080;">&#40;</span>breaks<span style="color: #080;">&#91;</span><span style="color: #080;">-</span>nB<span style="color: #080;">&#93;</span>, <span style="color: #ff0000;">0</span>, breaks<span style="color: #080;">&#91;</span><span style="color: #080;">-</span><span style="color: #ff0000;">1</span><span style="color: #080;">&#93;</span>, y, <span style="color: #0000FF; font-weight: bold;">col</span><span style="color: #080;">=</span><span style="color: #ff0000;">&quot;orange&quot;</span>, ...<span style="color: #080;">&#41;</span>
<span style="color: #080;">&#125;</span>
&nbsp;
&nbsp;
pairs.<span style="">ordered</span>.<span style="">categorical</span> <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">function</span><span style="color: #080;">&#40;</span>xx,...<span style="color: #080;">&#41;</span>
		<span style="color: #080;">&#123;</span>
			<span style="color: #0000FF; font-weight: bold;">pairs</span><span style="color: #080;">&#40;</span>xx , 
					diag.<span style="">panel</span> <span style="color: #080;">=</span> panel.<span style="">hist</span> ,
					lower.<span style="">panel</span><span style="color: #080;">=</span>panel.<span style="">smooth</span>.<span style="">ordered</span>.<span style="">categorical</span>,
					upper.<span style="">panel</span><span style="color: #080;">=</span>panel.<span style="">cor</span>.<span style="">ordered</span>.<span style="">categorical</span>,
					cex.<span style="">labels</span> <span style="color: #080;">=</span> <span style="color: #ff0000;">1.5</span>, ...<span style="color: #080;">&#41;</span> 
		<span style="color: #080;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
<span style="color: #228B22;"># -----------------</span>
<span style="color: #228B22;"># Example</span>
<span style="color: #228B22;"># -----------------</span>
&nbsp;
<span style="color: #0000FF; font-weight: bold;">set.<span style="">seed</span></span><span style="color: #080;">&#40;</span><span style="color: #ff0000;">666</span><span style="color: #080;">&#41;</span>
a1 <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">sample</span><span style="color: #080;">&#40;</span><span style="color: #ff0000;">1</span><span style="color: #080;">:</span><span style="color: #ff0000;">5</span>, <span style="color: #ff0000;">100</span>, <span style="color: #0000FF; font-weight: bold;">replace</span> <span style="color: #080;">=</span> <span style="color: #0000FF; font-weight: bold;">T</span><span style="color: #080;">&#41;</span>
a2 <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">sample</span><span style="color: #080;">&#40;</span><span style="color: #ff0000;">1</span><span style="color: #080;">:</span><span style="color: #ff0000;">5</span>, <span style="color: #ff0000;">100</span>, <span style="color: #0000FF; font-weight: bold;">replace</span> <span style="color: #080;">=</span> <span style="color: #0000FF; font-weight: bold;">T</span><span style="color: #080;">&#41;</span>
a3 <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">round</span><span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">jitter</span><span style="color: #080;">&#40;</span>a2, <span style="color: #ff0000;">7</span><span style="color: #080;">&#41;</span> <span style="color: #080;">&#41;</span>
	a3<span style="color: #080;">&#91;</span>a3 <span style="color: #080;">&lt;</span> <span style="color: #ff0000;">1</span> <span style="color: #080;">|</span> a3 <span style="color: #080;">&gt;</span> <span style="color: #ff0000;">5</span><span style="color: #080;">&#93;</span> <span style="color: #080;">&lt;-</span> <span style="color: #ff0000;">3</span>
a4 <span style="color: #080;">&lt;-</span> <span style="color: #ff0000;">6</span><span style="color: #080;">-</span><span style="color: #0000FF; font-weight: bold;">round</span><span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">jitter</span><span style="color: #080;">&#40;</span>a1, <span style="color: #ff0000;">7</span><span style="color: #080;">&#41;</span> <span style="color: #080;">&#41;</span>
	a4<span style="color: #080;">&#91;</span>a4 <span style="color: #080;">&lt;</span> <span style="color: #ff0000;">1</span> <span style="color: #080;">|</span> a4 <span style="color: #080;">&gt;</span> <span style="color: #ff0000;">5</span><span style="color: #080;">&#93;</span> <span style="color: #080;">&lt;-</span> <span style="color: #ff0000;">3</span>
&nbsp;
aa <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">data.<span style="">frame</span></span><span style="color: #080;">&#40;</span>a1,a2,a3, a4<span style="color: #080;">&#41;</span>
&nbsp;
<span style="color: #0000FF; font-weight: bold;">require</span><span style="color: #080;">&#40;</span><span style="color: #0000FF; font-weight: bold;">reshape</span><span style="color: #080;">&#41;</span>
&nbsp;
<span style="color: #228B22;"># plotting :)		</span>
pairs.<span style="">ordered</span>.<span style="">categorical</span><span style="color: #080;">&#40;</span>aa<span style="color: #080;">&#41;</span></pre></td></tr></table></div>

<h3> Credits: </h3>
<ul>
<li>The original R code for the correlation matrix plot was taken from <a href="http://addictedtor.free.fr/graphiques/graphcode.php?graph=137">R Graph Gallery</a> (The differences are: 1) The use of spearman correlation;  2) The adding of hist panel and;  3) The changing of points sizes</li>
<li>The idea to use symbols for changing the point sizes was <a href="http://stackoverflow.com/questions/2593643/correlation-scatter-matrix-plot-with-different-point-size-in-r">offered</a> by <a href="http://www.linkedin.com/pub/doug-y-barbo/2/356/416">Doug Y&#8217;barbo</a>.<br />
And also to<a href="http://dirk.eddelbuettel.com/"> Dirk Eddelbuettel </a>for offering to use cex (although I ended up not using that)</li>
</ul>
<p>If you got ideas on how to improve this code (or reproducing it with ggplot2 or lattice), please do so in the comments (or on your own blog, but be sure to let me know <img src='http://www.r-statistics.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.r-statistics.com/2010/04/correlation-scatter-plot-matrix-for-ordered-categorical-data/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>R Flashmob</title>
		<link>http://www.r-statistics.com/2009/09/r-flashmob/</link>
		<comments>http://www.r-statistics.com/2009/09/r-flashmob/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 05:54:53 +0000</pubDate>
		<dc:creator>Tal Galili</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[flashmob]]></category>
		<category><![CDATA[stackoverflow]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://www.r-statistics.com/?p=36</guid>
		<description><![CDATA[Today I noticed a call for R users to gather around a single campfire for one hour and share their questions and answers. The campfire name is stackoverflow.com, a site dedicated for handling programming questions. The event details are bellow: From: The R Flashmob Project Subject: R Flashmob #2 You are invited to take part [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.r-statistics.com/2009/09/r-flashmob/&amp;layout=box_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://www.r-statistics.com/2009/09/r-flashmob/"></g:plusone></div></div><p>Today I noticed a call for R users to gather around a single campfire for one hour and share their questions and answers.</p>
<p>The campfire name is stackoverflow.com, a site dedicated for handling programming questions. The event details are bellow:</p>
<p style="font-size: small; font-style: normal; color: #666666; font-family: 'Trebuchet MS', Verdana, sans-serif; font-weight: normal; line-height: 19px; text-align: left; margin-bottom: 10px; padding: 0px;">
<blockquote><p>From: The R Flashmob Project<br />
Subject: R Flashmob #2</p>
<p>You are invited to take part in R Flashmob, the project that makes the<br />
world a better place by posting helpful questions and answers about the<br />
R statistical language to the programmer’s Q &amp; A site stackoverflow.com</p>
<p>Please forward this to other people you know who might like to join.</p>
<p>FAQ</p>
<p>Q. Why would I want to join an inexplicable R mob?</p>
<p>A. Tons of other people are doing it.</p>
<p>Q. Why else?</p>
<p>A. Stackoverflow was built specifically for handling programming questions.<br />
It’s a better mousetrap. It offers search (and is well indexed by search engines),<br />
tagging, voting, the ability to choose the “best” answer to a question, and the ability to<br />
edit questions and answers as technology progresses. It has a karma system to<br />
reward people who are happy to help and discourage MLJs (mailing list jerks).</p>
<p>Q. Do the organizers of this MOB have any commercial interest in stackoverflow?</p>
<p>A. None at all. We’re just convinced it is the best way to help and promote R. All<br />
the content submitted to stackoverflow is protected by a Creative Commons<br />
CC-Wiki License, meaning anyone is free to copy, distribute, transmit, and<br />
remix the information on stackoverflow. All the content on stackoverflow is<br />
regularly made available for download by the public.</p>
<p>INSTRUCTIONS – R MOB #2<br />
Location: stackoverflow.com<br />
Start Date: Tuesday, September 8th, 2009<br />
Start Time:<br />
10:04 AM – US Pacific<br />
11:04 AM – US Mountain<br />
12:04 PM – US Central<br />
1:04 PM – US Eastern<br />
6:04 PM – UK<br />
7:04 PM – Continental W. Europe<br />
5:04 AM (Weds) – New Zealand (birthplace of R)<br />
Duration: 50 minutes</p>
<p>(1) At some point during the day on September 8th, synchronize your watch to</p>
<p>http://timeanddate.com/worldclock/personal.html?cities=137,75,64,179,136,37,22</p>
<p>(2) The mob should form at precisely 4 minutes past the hour and not beforehand.</p>
<p>(3) At 4 minutes past the hour, you should arrive at stackoverflow.com, log in,<br />
and post 3 R questions. Be sure to tag the questions “R”. See the posting<br />
guidelines at http://stackoverflow.com/faq to understand what makes a good<br />
question.</p>
<p>(4) Follow R Flashmob updates at http://twitter.com/rstatsmob</p>
<p>(5) Post twitter messages tagged #rstats and #rstatsmob during the mob,<br />
providing links to your questions.</p>
<p>(6) During the R MOB, you can chat with other participants on the #R channel<br />
on IRC (freenode). To do this, install the Chatzilla extension on Firefox.<br />
Click “freenode” on the main screen. Then type /join #R in the field at the<br />
bottom of the screen. Then chat.</p>
<p>(7) If you finish posting your three questions within the 50 minutes, stick<br />
around to answer questions and give “up votes” to good questions and answers.</p>
<p>(8) IMPORTANT: After posting, sign the R Flashmob guestbook at</p>
<p>http://bit.ly/6F8B2</p>
<p>(9) Return to what you would otherwise have been doing. Await<br />
instructions for R MOB #3.</p></blockquote>
<p>This invitation already gained exposure from 3 blogs:</p>
<ul>
<li><a href="http://www.stat.columbia.edu/~cook/movabletype/archives/2009/09/r_flashmob.html">Statistical Modeling, Causal Inference, and Social Science</a></li>
<li><a href="http://onertipaday.blogspot.com/2009/09/r-flashmob-2.html">ONE R TIP A DAY</a></li>
<li><a href="http://www.mailund.dk/index.php/2009/09/04/r-flashmob-project/">Mailund on the Internet</a></li>
<li><a href="http://blog.revolution-computing.com/2009/09/flash-mob-for-r-questions-and-answers.html">Revolution blog</a></li>
</ul>
<p>I am waiting to see who else will join the fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.r-statistics.com/2009/09/r-flashmob/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

