Timeline graph with ggplot2

July 7, 2012 | Bart

This post shows how to create a timeline graph by using ggplot2. Let’s start by loading the ggplot2 library. Next let’s create a dataset which we will use to feed the graph. In the last column (y), I create random positive values for the first three rows (which ... [Read more...]

igraph and SNA: an amateur’s dabbling

June 29, 2012 | tylerrinker

I’ve been playing with the igraph package a bit lately (see previous post HERE) and wanted to approach a problem I once visited in the past. The basic gist of the problem is this: Students in a class are asked … Continue reading → [Read more...]

igraph and structured text exploration

June 29, 2012 | tylerrinker

I am in the slow process of developing a package to bridge structured text formats (i.e. classroom transcripts)  with the tons of great R packages that visualize and analyze quantitative data (If you care to play with a rough build … Continue reading → [Read more...]

Tikz Introduction

September 27, 2011 | Ralph

The pgf drawing package for LaTeX provides facilities for drawing simple of complicated pictures within a LaTeX document. There are many options available within the package and in this post we consider some of the basics to get up and running. Fast Tube by Casper As with all LaTeX documents ... [Read more...]

gridExtra – Multiple plots from ggplot2

June 8, 2011 | nzcoops

Thanks to this great post we can now put multiple plots on a display with ggplot2. This provides somewhat similar functionality to ‘par(mfrow=c(x,y))’ which would allow multiple plots with the base plot function. gridExtra doesn’t have quite the same level ... [Read more...]

Graph Bisection in R

April 14, 2011 | CL

Recently I had to partition a set of SNPs into a training set and a test set. Making a random split would not do: both sets would likely contain very similar SNPs due to linkage disequilibrium (LD), making them non-independent. … Continue reading → [Read more...]

Le Monde puzzle #13

April 13, 2011 | xi'an

This week, Le Monde offers not one but three related puzzles: Is it possible to label the twelve edges of a cube by consecutive numbers such that the sum of the edge numbers at any of the eight nodes is constant? Is it possible to label the eight nodes of ... [Read more...]

Graphing – margins, titles, mtext, workspace

February 21, 2011 | nzcoops

This is a great post, very true, not enough of R’s graphics are well displayed online to really see how to achieve what the often ambiguous ‘help’ information suggests. I particularly find “mtext(“lol”, outer=T)” to be ... [Read more...]

Graph gallery in R

January 6, 2011 | Julyan Arbel

R is sometime criticized for producing graphs not as elaborated as Matlab ones, or other softwares’. Here is a link to a graph gallery by Romain François to “enhance your data visualization with R”. The corresponding R code is given. Might be useful for ENSAE students for ‘statap’ projects. ...
[Read more...]

Le Monde puzzle [48]

December 1, 2010 | xi'an

This week(end), the Le Monde puzzle can be (re)written as follows (even though it is presented as a graph problem): Given a square 327×327 symmetric matrix A, where each non-diagonal entry is in {1,2,3,4,5} and , does there exist a triplet (i,j,k) such that Solving this problem in R ... [Read more...]

Visualization of regression coefficients (in R)

July 2, 2010 | Tal Galili

Update (07.07.10): The function in this post has a more mature version in the “arm” package. See at the end of this post for more details. * * * * Imagine you want to give a presentation or report of your latest findings running some sort of regression analysis. How would you do it? This ... [Read more...]

Not Just Normal… Gaussian

June 16, 2009 | JD Long

Dave, over at The Revolutions Blog, posted about the big ‘ol list of graphs created with R that are over at Wikimedia Commons. As I was scrolling through the list I recognized the standard normal distribution from the Wikipedia article on the same topic. Below is the fairly simple source ...
[Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)