Tag: R

ggplot2 – Multiple Plots in One Graph Using gridExtra

I’ve been using ggplot2’s facet_wrap and facet_grid feature mostly because multiplots I’ve had to plot thus far were in one way or the other related. However, I needed to plot a multiplot consisting of four (4) distinct plot datasets. In the past, when working with R base graphics, I used the layout() function to achive this [1]. (more…)

Using R ggplot2 Package for Elegant Graphics

I have been analysing results from a user study I conducted a couple of weeks back, and quite naturally, I have been experimenting with varying ways of presenting the results graphically. I have primarily been using R base graphics for constructing my plots, but recently came across ggplot2… incidentally though, I also briefly experimented with lattice. (more…)

R Graphical Representation – Multiple Plots in One Graph

I find that the R layout() function is a lot easier and more flexible to work with when combing multiple plots into one graph. I have in the past also played around with the par() function, but layout() is my favourite 🙂 (more…)

Embedding R Code in LaTeX Using tikzDevice Package

LaTeX/Sweave integration is awesome! Dynamic reporting made easy indeed. Integrating the overall workflow with tikZ functionality right within R is even better as it esures that your plots have a consistent look and feel through out your report.


storage cabinet