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”

# 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]. 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”

## 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 ðŸ™‚ Continue reading “R Graphical Representation – Multiple Plots in One Graph”

## 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.

Continue reading “Embedding R Code in LaTeX Using tikzDevice Package”