New Features in ggplot2 0.8.5

January 6, 2010
By

Learning R blog details some of the new features in the latest update to ggplot2. The latest version includes functions to make it easier to change axis and legend labels, as well as a function to easily set the limits of the plot display outside the range of the data. Be sure to check back next week - I'm putting...

Read more »

Earthquake maps

January 6, 2010
By
Earthquake maps

There's been a number of earthquakes in the Solomon Islands over the past few days, including one that caused a tsunami to partially destroy the village of Baniata on Rendova, Western Provence. You can see exactly how many earthquakes have occurred the...

Read more »

Earthquake maps

January 6, 2010
By
Earthquake maps

There's been a number of earthquakes in the Solomon Islands over the past few days, including one that caused a tsunami to partially destroy the village of Baniata on Rendova, Western Provence. You can see exactly how many earthquakes have occurred the...

Read more »

New Features in ggplot2 version 0.8.5

January 6, 2010
By
New Features in ggplot2 version 0.8.5

Just before Christmas ggplot2 version 0.8.5 was released, closely following the release of version 0.8.4 a week or so earlier. Whilst both versions included included numerous bugfixes (25 in 0.8.4 and 17 in 0.8.5), the latest version also incorporated some new features. As ggplot2 is all about graphical display, so I went through the list

Read more »

The number of R packages is growing exponentially

January 6, 2010
By
The number of R packages is growing exponentially

The second issue of the R Journal is out now, and in addition to a bevy of contributed articles and some news from the R Core Group on the new help system introduced in R 2.10, there's an invited section called, intriguingly, "The Future of R". In that section John Fox provides an exhaustively researched and insightful review of...

Read more »

R AnalyticFlow

January 6, 2010
By
R AnalyticFlow

R AnalyticFlow is an interesting piece of software. From its web site:"R AnalyticFlow is a software which enables state-of-the-art data analysis by drawing analysis flowcharts. You can effectively share processes of data analysis in collaborative wo...

Read more »

Latin squares design in R

January 6, 2010
By
Latin squares design in R

The Latin square design is used where the researcher desires to control the variation in an experiment that is related to rows and columns in the field.Remember that: * Treatments are assigned at random within rows and columns, with each treatment once per row and once per column. * There are equal numbers...

Read more »

Latin squares design in R

January 6, 2010
By
Latin squares design in R

The Latin square design is used where the researcher desires to control the variation in an experiment that is related to rows and columns in the field.Remember that: * Treatments are assigned at random within rows and columns, with each treatment once per row and once per column. * There are equal numbers...

Read more »

littler 0.1.3

January 5, 2010
By

A new littler release (now at 0.1.3) just went out of the door this evening. littler provides r (pronounced littler), a shebang / scripting / quick eval / pipelining front-end to the the R language and system. This version adds a few minor behind-...

Read more »

littler 0.1.3

January 5, 2010
By

A new littler release (now at 0.1.3) just went out of the door this evening. littler provides r (pronounced littler), a shebang / scripting / quick eval / pipelining front-end to the the R language and system. This version adds a few minor behind-the...

Read more »

littler 0.1.3

January 5, 2010
By

A new littler release (now at 0.1.3) just went out of the door this evening. littler provides r (pronounced littler), a shebang / scripting / quick eval / pipelining front-end to the the R language and system. This version adds a few minor behind-...

Read more »

Typos in Chapter 2

January 5, 2010
By
Typos in Chapter 2

When grading homeworks for my Monte Carlo graduate class, I found that my students had pointed out two typos in the exercises of Chapter 2 of “Introducing Monte Carlo Methods with R”. – In Exercise 2.17, question d. should be “d. Show that the maximum of is attained at .“ – In Exercise 2.21, in item

Read more »

Transitions and transversions in R

January 5, 2010
By
Transitions and transversions in R

A couple of months ago I wrote the following R function to calculate the number of transitions and transversions between DNA sequences in an alignment. The function is fairly slow (an alignment of ~100 sequences, 800 bp in length takes around 30 second...

Read more »

Setting the HTML title tag in SAS ODS (the right way)

January 5, 2010
By
Setting the HTML title tag in SAS ODS (the right way)

In our department and various places on the Intertubes, SAS programmers set the HTML title tag (which sets the title in web browsers and on search engines) in ODS using the headtext option: ods html headtext="<title>My great report</title>" /* wrong! */ file="foo.html"; This may work in some situations, but it’s ugly and wrong. To see

Read more »

Announcing r-ORM: A Pure R Object-Relational Mapper

January 5, 2010
By

My apologies for the long break between posts. Before the end of this week I’ll return to my series of posts on image processing in R. In the intervening time, I’ve finished a piece of code that I’d like to officially release to the public. The code in question is a very minimal object-relational mapper

Read more »

Analyzing a FriendFeed group with Ruby and R

January 5, 2010
By
Analyzing a FriendFeed group with Ruby and R

FriendFeed is a social media service, where groups of people can post interesting information from the Web, and "like" or comment posts from others. Statistical Bioinformatician Neil Saunders is a member of the "Life Scientists" group, and has posted an analysis of the group's activity in 2009 to his blog. He used Ruby and the FriendFeed API to extract...

Read more »

R Journal 1/2

January 5, 2010
By
R Journal 1/2

R Journal 1/2 is out! Grab it from here.

Read more »

R Journal 1/2

January 5, 2010
By
R Journal 1/2

R Journal 1/2 is out! Grab it from here.

Read more »

R: Memory usage statistics by variable

January 4, 2010
By
R: Memory usage statistics by variable

Do you need a way to find out which individual variables in R consume the most memory? # create dummy variables for demonstration x <- 1:1000 y <- 1:10000 z <- 1:100000 # print aggregate memory usage statistics print(paste('R is using', mem...

Read more »

Example 7.20: Simulate categorical data

January 4, 2010
By
Example 7.20: Simulate categorical data

Both SAS and R provide means of simulating categorical data (see section 1.10.4). Alternatively, it is trivial to write code to do this directly. In this entry, we show how to do it once. In a future entry, we'll demonstrate writing a SAS Macro (section A.8.1) and a function in R (section B.5.2) to do it...

Read more »

O’Reilly’s R is a Harpy Eagle

January 4, 2010
By
O’Reilly’s R is a Harpy Eagle

Today marks the hardcopy availability of the first book dedicated to R from O'Reilly, R in a Nutshell. In the familiar O'Reilly style, the cover is adorned with an illustration of an animal, in this case a harpy eagle: The book is written by Joe Adler, a data analyst and the author of Baseball Hacks. In contrast to the...

Read more »

Welcome!

January 4, 2010
By

Welcome to my new blog, Byte Mining! Data is all around us, all the time. It flows in from places you would least expect it, and more times that not, it remains in its original form untouched by human and machine. When data simply flows in and out of our lives, we miss out on the story that it...

Read more »

Soical Network Analysis in R

January 3, 2010
By

Presentation by Drew Conway on August 6, 2009 at the NYC R Statistical Programming Meetup on how to perform basic social network analysis in R using the igraph package.

Read more »

directlabels: Adding direct labels to ggplot2 and lattice plots

January 3, 2010
By
directlabels: Adding direct labels to ggplot2 and lattice plots

Sometimes it is preferable to label data series instead of using a legend. This post demonstrates one way of using labels instead of legend in a ggplot2 plot. > library(ggplot2) > p <- ggplot(dfm, aes(month, value, group = City, colour = City)) + geom_line(size = 1) + opts(legend.position = "none") > p + geom_text(data =

Read more »

Rcpp 0.7.1

January 2, 2010
By

Two weeks after the Rcpp 0.7.0 release, Romain and I are happy to announce release 0.7.1 of Rcpp. It is currently in the incoming section of CRAN and has been accepted into Debian. Mirrors will catch up over the next few days, in the meantime the local page is available for download too. A lot has...

Read more »

Rcpp 0.7.1

January 2, 2010
By

Two weeks after the Rcpp 0.7.0 release, Romain and I are happy to announce release 0.7.1 of Rcpp. It is currently in the incoming section of CRAN and has been accepted into Debian. Mirrors will catch up over the next few days, in the meantime the local...

Read more »

Rcpp 0.7.1

January 2, 2010
By

Two weeks after the Rcpp 0.7.0 release, Romain and I are happy to announce release 0.7.1 of Rcpp. It is currently in the incoming section of CRAN and has been accepted into Debian. Mirrors will catch up over the next few days, in the meantime the local page is available for download too. A lot has...

Read more »

LSPM Examples

January 2, 2010
By
LSPM Examples

I have received several requests for additional LSPM documentation over the past couple days and a couple months ago I promised an introduction to LSPM. In this long-overdue post, I will show how to optimize a Leverage Space Portfolio with the LSPM pa...

Read more »

Arctic Sea Ice Extent Trends With R

January 1, 2010
By
Arctic Sea Ice Extent Trends With R

This post shows how to retrieve on-line Arctic Sea Ice Extent data from the National Snow and Ice Data Center (NSIDC), consolidate the data files, generate a csv file, summarize and plot the data and post it as a Google Docs so that interested readers can download and analyze this data series themselves. Links to

Read more »