1171 search results for "tutorial"

Maps with ggplot2

September 27, 2010
By
Maps with ggplot2

The ggplot2 package offers powerful tools to plot data in R. The plots are designed to comply with the “grammar of graphics” philosophy and can be produced to a publishable level relatively easily. For users wishing to create a good map without too much thought I would recommend this worksheet. For those without their own

Read more »

Connecting to a MongoDB database from R using Java

September 24, 2010
By
Connecting to a MongoDB database from R using Java

It would be nice if there were an R package, along the lines of RMySQL, for MongoDB. For now there is not – so, how best to get data from a MongoDB database into R? One option is to retrieve JSON via the MongoDB REST interface and parse it using the rjson package. Assuming, for

Read more »

Guidelines for efficient R programming

September 22, 2010
By

R is designed to make it easy to clearly express statistical ideas in code, but when it come to writing code that runs as fast as possible, there are a few tips, tricks and caveats to be aware of. As part of the BioConductor conference this past summer, Martin Morgan prepared a tutorial on efficient R programming. (Patrick Abouyen...

Read more »

Elder Research Two Day Course

September 18, 2010
By

... or what I did on my summer vacation...Just got back from the Elder Research Two Day Course "Tools for Discovering Patterns in Data".  It was a great course that (while not R specific) provides a great overview of Data Mining tools and tec...

Read more »

Elder Research Two Day Course

September 18, 2010
By

... or what I did on my summer vacation...Just got back from the Elder Research Two Day Course "Tools for Discovering Patterns in Data".  It was a great course that (while not R specific) provides a great overview of Data Mining tools and tec...

Read more »

Principal Component Analysis (PCA) vs Ordinary Least Squares (OLS): A Visual Explanation

September 16, 2010
By
Principal Component Analysis (PCA) vs Ordinary Least Squares (OLS): A Visual Explanation

Over at stats.stackexchange.com recently, a really interesting question was raised about principal component analysis (PCA). The gist was “Thanks to my college class I can do the math, but what does it MEAN?” I felt like this a number of times in my life. Many of my classes were focused on the technical implementations they kinda

Read more »

Clipping a Surface By a Polygon

September 8, 2010
By
Clipping a Surface By a Polygon

Background: A common function in standard GIS software enables users to create a raster surface and extract values or clip it based on a set of polygons. This may be used in cases where you want analysis to be constrained to within a town’s boundaries or a coastline. This tutorial will outline how to create

Read more »

Writing a Spatial Function: The Location Quotient

September 7, 2010
By
Writing a Spatial Function: The Location Quotient

Background: In some cases it is necessary to conduct the same analysis multiple times on either the same or different data. In such circumstances it is worth writing a function to simplify the code. In this example the location quotient provides a simple calculation easily written in to a function. The location quotient (LQ) is

Read more »

R Maps

September 6, 2010
By
R Maps

This is an updated version of my Making Maps with R tutorial. I think the code is lot simpler and it also includes some data for you to play around with. Background: Spatial data are becoming increasingly common, as are the tools available in R to process it. Of course one of the best ways

Read more »

apply functions in R

August 31, 2010
By

Getting to know the "apply"s in R is extremely handy for using the language efficiently and effectively. Unfortunately, the help files tend to be rather information-dense and are fairly overwhelming for newcomers. A recent blog post by Neil Saunders pr...

Read more »