LaTeX Font-consistent EPS R Plots Using tikzexternalize

We are about to submit a final camera-ready version of a manuscript and they sent us this email the other day reminding us, among other things, to “adhere to the prescribed [ACM] format as set out in paragraph 2.3.10 [1]”… In a nutshell, they want all figures in EPS format. Now I am very particular about font-consistency when integrating plots within TeX documents, and so I spent most of last night trying to figure this out. I eventually decided to leverage a somewhat widely used technique–‘tikzexternalize’. I found this [2] thread on StackExchange really helpful. Continue reading “LaTeX Font-consistent EPS R Plots Using tikzexternalize”

[R-scripts] ggplot2 Plot Collection on Github

Seeing as VERY few individuals will ever get to read my MSc dissertation [1], I have been thinking of other ways I can potentially scrap off bits of useful information from it. I have created a git repository [2], where I will dump all R generated plots. Hopefully, someone out there will find these R code snippets useful. Continue reading “[R-scripts] ggplot2 Plot Collection on Github”

[R-scripts] ggplot2 Kiviat Plot Using coord_polar Function

I ran out of time a couple of months ago and decided to use the following quick hack to generatea Kiviat plot using ggplot2’s coord_polar function. Continue reading “[R-scripts] ggplot2 Kiviat Plot Using coord_polar Function”

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]. Continue reading “ggplot2 – Multiple Plots in One Graph Using gridExtra”

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. Continue reading “Using R ggplot2 Package for Elegant Graphics”