Blog Archives

Remove leading 0 with ggplot2.

March 22, 2015
By
Remove leading 0 with ggplot2.

I recently had an occasion while working on a three variable interaction plot for a paper where I wanted to remove the leading 0's in the x-axis text labels using ggplot2. This was primarily due to some space concerns I had for the x-axis labels. Unfor...

Read more »

Structured simulation of regression models – simReg package.

September 30, 2014
By

I'd like to introduce a package that simulates regression models. This includes both single level and multilevel (i.e. hierarchical or linear mixed) models up to two levels of nesting. The package produces a unified framework to simulate all types of c...

Read more »

Google location data — Where I’ve been.

September 25, 2014
By
Google location data — Where I’ve been.

I was emailed by a friend that was looking into their google location data and had asked if I had ever used a json file before in R. I said I had not, but I knew there were packages to do such things. The things I sent were things he had already tried,...

Read more »

Offense or defense improve likelihood of becoming bowl eligible?

September 4, 2014
By
Offense or defense improve likelihood of becoming bowl eligible?

I saw a post recently about the likelihood of a baseball team winning based on how many runs, hits, and other baseball statistics. I liked the idea and thought of applying that to college football. Particularly, I'm interested in knowing whether scorin...

Read more »

Dodged bar charts, why not a line graph?

August 4, 2014
By
Dodged bar charts, why not a line graph?

I often see graphs that are poorly implemented in that they do not achieve their goal. One such type of graph that I see are dodged bar charts. Here is an example of a dodged bar chart summarizing the number of all star players by team (focusing spec...

Read more »

Format Markdown Documents in R

July 29, 2014
By
Format Markdown Documents in R

Have you ever used a markdown file to create an html file? Have you ever wanted to quickly format the subsequent html file to add some color or other aspects? If your answer is yes to both of those questions, this package may be of interest to you. ...

Read more »

R gui Revisited

May 27, 2014
By

A couple months ago I wrote about switching my class from using SPSS to one that uses R with a gui frontend (original post). Since the semester has wrapped up, below are my thoughts on how the course went with respect to the students using R. Things ...

Read more »

AERA Preview

April 2, 2014
By

The American Educational Research Association (AERA) annual conference is this weekend in Philadelphia. I was lucky to have a paper accepted into the conference. I am presenting a meta analysis that I have been working on for the past two years or so titled: Model misspecification and assumption violations with the linear mixed model: A meta analysis. In...

Read more »

Evolution of Code

March 27, 2014
By

Recently while scraping some data from the college football data warehouse site, I started to realize the evolution of my code. To preface this, I am definitely not a trained programmer, just a self taught junky who enjoys doing it when I have time. ...

Read more »

Update to highlightHTML package

March 14, 2014
By

I've added a new functionality to my highlightHTML package. This package post-processes HTML files and injects CSS and adds tags to create some further customization (for example highlight cells of a HTML table). This is most useful when writing a document using markdown and converting it into a HTML document using a tool like knitr, slidify, or...

Read more »