Filled contour with log-log scale

October 15, 2009
By
Filled contour with log-log scale

A quick workaround to have a filled.contour plot with natural log10-log10 scale (instead of the default natural log scale) plotmat <- function(mat,main='',factor='M',MeasuredResponse='Coexistence') { X <- as.numeric(rownames(mat)) Y <- as.numeric(colnames(mat)) if(factor=='C') { Y <- Y/0.16 } rownames(mat) <- as.numeric(X) colnames(mat) <- as.numeric(Y) colorFun <- colorRampPalette(c("black","darkblue","blue","green", "orange",'yellow',"red","darkred",'white')) lX <- log(X, 10) lY <- log(Y, 10) pretty.X.at <-

Read more »

Comprehensive Change Detection Suite: Free & Available

October 15, 2009
By

October 2009 Open Data Group has launched a changed detection project on Google Code, http://code.google.com/p/change-detection/. This is an introduction and demonstration of using open source software and the Data Mining Group’s Predictive Model Markup Language (PMML) standard to perform data analytics.  Specifically, we show how using multiple Baseline models over segments can be used to detect of

Read more »

“I’m a Republican because…”, visualized with R

October 15, 2009
By
“I’m a Republican because…”, visualized with R

Visualizing user-generated statements from GOP.com to the theme of "I'm a Republican because...", using R.

Read more »

R Tutorial Series: Introduction to The R Project for Statistical Computing (Part 2)

October 15, 2009
By
R Tutorial Series: Introduction to The R Project for Statistical Computing (Part 2)

Welcome to part two of the Introduction to The R Project for Statistical Computing tutorial. If you missed part one, it can be found here. In this segment, we will explore the following topics.Importing DataVariablesWorkspace FilesConsole FilesFinding ...

Read more »

The Elements of Statistical Learning

October 14, 2009
By
The Elements of Statistical Learning

The Elements of Statistical Learning written by Trevor Hastie, Robert Tibshirani and Jerome Friedman is A-MUST-TO-READ for everyone involved in the data mining field! Now you can legally download a copy of the book in pdf format from the authors websit...

Read more »

What’s Happening, Man?

October 14, 2009
By

topsyWidgetPreload({ "url": "http%3A%2F%2Fborasky-research.net%2F2009%2F10%2F14%2Fwhats-happening-man%2F", "style": "big", "title": "What's Happening, Man?" }); There is quite a bit of activity on the AlgoCompSynth front. As you may know, I’m a SUSE Studio subscriber, and I’m building openSUSE 11.1-based appliances there. One of them is dedicated to AlgoCompSynth, and I expect to make a release in the very near future,

Read more »

RPostgreSQL 0.1-5

October 13, 2009
By

A new version of RPostgreSQL just went out to CRAN and should propagate via the mirrors over the next few days. This is a maintenance and bug fix release that addresses four of the seven issue at the Google Code page. Two more are really enhancemen...

Read more »

RPostgreSQL 0.1-5

October 13, 2009
By

A new version of RPostgreSQL just went out to CRAN and should propagate via the mirrors over the next few days. This is a maintenance and bug fix release that addresses four of the seven issue at the Google Code page. Two more are really enhancement r...

Read more »

RPostgreSQL 0.1-5

October 13, 2009
By

A new version of RPostgreSQL just went out to CRAN and should propagate via the mirrors over the next few days. This is a maintenance and bug fix release that addresses four of the seven issue at the Google Code page. Two more are really enhancemen...

Read more »

Investigation the relationship between two variables using a scatter plot

October 13, 2009
By
Investigation the relationship between two variables using a scatter plot

The relationship between two variables can be visually represented using a scatter plot and will provide some insight into the correlation between the variables and possible models to describe the relationship. There are different ways to produce scatter plots in R making use of either the base graphics system, the lattice graphics library, ggplot2 or

Read more »

RExcel

October 13, 2009
By

I am not a fan of MS Windows software. However, the reality is that majority of people use it and it is often easier for me to live with this than to convert the sorounding souls. Additionally I am find ing out lately that majority of my favourite open...

Read more »

RExcel

October 13, 2009
By

I am not a fan of MS Windows software. However, the reality is that majority of people use it and it is often easier for me to live with this than to convert the sorounding souls. Additionally I am find ing out lately that majority of my favourite open...

Read more »

Example 7.15: A more complex sales graphic

October 13, 2009
By
Example 7.15: A more complex sales graphic

The plot of Amazon sales rank over time generated in example 7.14 leaves questions. From a software perspective, we'd like to make the plot prettier, while we can embellish the plot to inform our interpretation about how the rank is calculated.For the latter purpose, we'll create an indicator of whether the rank was recorded in nighttime (eastern US...

Read more »

Make Shift-Enter do a lot in ESS

October 12, 2009
By

If you use Emacs and ESS to run R, then here’s a nice tweak I found on the Emacs Wiki. The following bit of elisp goes in your .emacs file (or equivalent). Starting with an R file in the buffer, hitting shift-enter vertically splits the window and starts R in the right-side buffer. If R

Read more »

Zut alors!

October 12, 2009
By

Christian: of course you will be running the Chicago 2010 marathon as your next fall marathon. Not only are Paris and Chicago jumelée (i.e. sister cities), but the Dollar is so conveniently falling vis-à-vis the Euro that you'd get all this done for about a Euro and a half by the time the race happens. Moreover, 2010 is going to be...

Read more »

Public opinion on health care reform

October 12, 2009
By
Public opinion on health care reform

hc_appattach(hc_app) hc_fit.o1hc_fit.f1hc_fit.o2hc_fit.f2plot(as.Date(Dates),Oppose,main="Public opinion and health care reform",ylim=c(0,80),pch=16,xlim=c(as.Date("2009-01-01"),as.Date("2009-11-01")),cex.axis=.85, col="#E6ADD8",xlab="",ylab="Percentage approving or opposing") points(as.Date(Dates),Favor,pch=16,col="#ADD8E6") lines(hc_fit.f1,col="blue",lwd=2)lines(hc_fit.o1,col="red",lwd=2)lines(hc_fit.f2,col="blue",lwd=2,lty=3)lines(hc_fit.o2,col="red",lwd=2,lty=3) abline(h=50,lwd=.5,lty=3,col="#555555")

Read more »

Public opinion on health care reform

October 12, 2009
By
Public opinion on health care reform

hc_appattach(hc_app) hc_fit.o1hc_fit.f1hc_fit.o2hc_fit.f2plot(as.Date(Dates),Oppose,main="Public opinion and health care reform",ylim=c(0,80),pch=16,xlim=c(as.Date("2009-01-01"),as.Date("2009-11-01")),cex.axis=.85, col="#E6ADD8",xlab="",ylab="Percentage approving or opposing") points(as.Date(Dates),Favor,pch=16,col="#ADD8E6") lines(hc_fit.f1,col="blue",lwd=2)lines(hc_fit.o1,col="red",lwd=2)lines(hc_fit.f2,col="blue",lwd=2,lty=3)lines(hc_fit.o2,col="red",lwd=2,lty=3) abline(h=50,lwd=.5,lty=3,col="#555555")

Read more »

R Tutorial Series: Introduction to The R Project for Statistical Computing (Part 1)

October 11, 2009
By
R Tutorial Series: Introduction to The R Project for Statistical Computing (Part 1)

R is a free, cross-platform, open-source statistical analysis language and program. It is also an alternative to expensive commercial statistics software such as SPSS. The environment for R differs from the typical point and click interface found in mo...

Read more »

Chicago Marathon 2009

October 11, 2009
By
Chicago Marathon 2009

Earlier today the 33rd Chicago Marathon was held. I will organise my comments by pointing out three epic fails. First, of course, was the Chicago weather. After two successive marathon in excessive heat --- the 2007 race I completed, poorly, with its thousands of runners forced to abandon when the race was cancelled due to excessive heat, and the 2008 version which...

Read more »

R for system administration and scripting

October 10, 2009
By

On several occassions, R had suggested itself as a language for systems scripting. By this I mean random little adminstrative task such as (re-)moving or maybe renaming files or directories and the like. One of such cases just happened a few minutes ago. The aforementioned Garmin Forerunner 405 can cooperate quite nicely with Linux using the gant reader for the ant wireless communication protocol...

Read more »

R for system administration and scripting

October 10, 2009
By

On several occassions, R had suggested itself as a language for systems scripting . By this I mean random little adminstrative task such as (re-)moving or maybe renaming files or directories and the like. One of such cases just happened a few minutes ...

Read more »

R for system administration and scripting

October 10, 2009
By

On several occassions, R had suggested itself as a language for systems scripting. By this I mean random little adminstrative task such as (re-)moving or maybe renaming files or directories and the like. One of such cases just happened a few minutes ago. The aforementioned Garmin Forerunner 405 can cooperate quite nicely with Linux using the gant reader for the ant wireless communication protocol...

Read more »

50000 Revisions Committed to R

October 10, 2009
By
50000 Revisions Committed to R

oday Romain Francois posted an interesting topic in the R-help list, and you can read his blog post for more details: celebrating R commit #50000. 50000 is certainly not a small number; we do owe R core members a big “thank you” for their great efforts in this fantastic statistical language in the 13 years.

Read more »

Visualizing sample relatedness in a GWAS using PLINK and R

October 9, 2009
By

Strict quality control procedures are extremely important for any genome-wide association study.  One of the first steps you should take when running QC on your GWAS is to look for related samples in your dataset.  This does two things for you.  First, you can get an idea of how many related samples you have in your dataset, and second,...

Read more »

celebrating R commit #50000

October 9, 2009
By
celebrating R commit #50000

pre{ font-size: x-small !important ; border: 1px solid black ; } Today, Brian Ripley commited the revision 50 000 into R svn repository. ------------------------------------------------------------------------ r50000 | ripley | 2009-10-09...

Read more »

Comments on "Ecological Statistics with R"

October 8, 2009
By
Comments on "Ecological Statistics with R"

Didrik Vanhoenacker has put together a site called Ecological Statistics with R.The site provides several resources useful to researchers who are new to R. It gives advice on installing R. It discusses how to use several standard techniques (ANOVA...

Read more »

Solar Trends: Comparison of TSI and GISS Temperature Anomaly Trends

October 8, 2009
By
Solar Trends: Comparison of TSI and GISS Temperature Anomaly Trends

This post continues my analysis of solar trends, this time comparing reconstructed total solar irradiance (TSI) and temperature anomaly (GISS) trends for the 1880 – 2009 period. I use 11 year moving averages to smooth both series so that we can see the longer term trends.   Links to a download-able copy  of my

Read more »

“Outlook cannot open this item.” and tasks missing

October 8, 2009
By
“Outlook cannot open this item.” and tasks missing

Recently Microsoft Office Outlook 2007 started giving me the vague error message Outlook cannot open this item. The item may be damaged. The message would appear randomly throughout the day. Sometimes five error message boxes would be stacked up on top of each other. OK, but which item? What kind of item? Is it an

Read more »

Delete rows from R data frame

October 8, 2009
By
Delete rows from R data frame

Deleting rows from a data frame in R is easy by combining simple operations. Let’s say you are working with the built-in data set airquality and need to remove rows where the ozona is NA (also called null, blank or missing). The method is a conce...

Read more »