Using Sweave

If you use R and haven’t discovered Sweave then go and find out about it. It enables R code and plots to be incorporated into a document so the analysis and report can be combined together in a single document. … Continue reading … Continue reading

Googling Bayes’ pictures

I am writing way too many posts in a row on Google tools. I promise I will think about something else soon. I find amusing the possibility to launch a search in Google images by just dragging a picture into the search box, instead of typing text. I remember that Pierre told me about it a long time … Continue reading

Tikz Introduction

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 we … Continue reading

Introduction to Beamer

A friend of mine, who is quite smart by the way (she is a PhD. student in Physics at Cambridge), recently asked me for some help with Beamer. Well most of my knowledge and code came from Utkarsh when I had started about a year ago. Initially, I had just asked him for some help with Ubuntu, … Continue reading

Scatter plots with images

Edward Tufte has written extensively on the presentation of data covering good and bad practice. He has made a number of suggestions for adaptations of regularly used graph types to assist with the interpretation and understanding of data. One idea for enhancing scatter plots covered in … Continue reading

Makefiles and Sweave

A Makefile is a simple text file that controls compilation of a target file. The key benefit of using Makefile is that it uses file time stamps to determine if a particular action is needed. In this post we discuss how to use a simple Makefile that compiles a tex file that contains a number of … Continue reading

Code: LaTeX tables for lme4 models

I have recently discovered memisc, an extremely useful R package by Martin Elff (see his memisc page here). The package contains any number of useful functions, and is particularly good at helping one manage and recode survey data. However, by far my favorite thing about the package is the … Continue reading

R Workflow

When working with R you end up using a large number of datasets, packages, functions, objects, output files, workspaces, etc.  It can get a bit overwhelming trying to keep everything organized.  That is why a consistent, well-organized workflow is needed.  I definitely do not have … Continue reading

Sorting out Sweave in Eclipse/StatET

Using Sweave to produce pretty-looking documentation for R is awfully handy. It takes a little tweaking to get set up in Eclipse and StatET though. I followed the information in Jeromy Anglim’s webpage to originally get Sweave set up. The following is my experience getting it working with … Continue reading