For those starting out with spatial data in R, Robin Lo

R news and tutorials contributed by (552) R bloggers

This course is about getting to grips with the basics of the R command line for basic data analysis and visualisation. There's a focus on maps and ggplot2.The first part of the course uses Rich Harris's "Short Introduction to R" (here).The second part works through an "Introduction to Spatial Data and ggplot2" (Cheshire and Lovelace, 2013), which can be found...

This course is about getting to grips with the basics of the R command line for basic data analysis and visualisation. There's a focus on maps and ggplot2.The first part of the course uses Rich Harris's "Short Introduction to R" (here).The second part works through an "Introduction to Spatial Data and ggplot2" (Cheshire and Lovelace, 2013), which can be found...

I’ve been doodling some chart in R/ggplot using geom_text() to generate a labelled scatterplot. The chart actually builds up several layers using different datasets, so it’s not obvious how to set the ranges cleanly: I know the lower bound I want for the y-axis (y=0), but I want to let the upper bound float. There’s

The following is the code from a presentation made by Rosemary Hartman to the Davis R Users’ Group. I’ve run the code through the spin function in knitr to produce this post. Download the script to walk through here. First, make your plot. I am going to use the data already in R about sleep habits...

<p>Loading ...</p>

In this post, I use a simulated dataset (7 variables -3 factor and 4 numeric - and a sample size of 50) to create graphs/charts using base R, and replicate them using ggplot2, and rCharts. This is not an attempt to create an exhaustive database of grap...

I haven’t used interaction terms in (generalized) linear model quite often yet. However, recently I have had some situations where I tried to compute regression models with interaction terms and was wondering how to interprete the results. Just looking at the estimates won’t help much in such cases. One approach used by some people is