# 2148 search results for "ggplot2"

## Sharing my work for “Advanced Methods III”

February 13, 2013
By

This semester I’m taking the live version of the Data Analysis class by Jeff Leek. His more popular version of the course is available through Coursera.  One of the things that Jeff promotes is reproducibility and sharing code. I share that tendency and thus created a Git repository for my homework and code for the class: lcollado753. I’m...

## R: Barplot with absolute and relative values

February 12, 2013
By

In this short tutorial I will show how you can add the relative amount over the barplots, such that you have both, the absolute and relative Information in the plot. First, I create some artificial SNPs and TPMT-genotype.

## A Review of the R Graphics Cookbook

February 11, 2013
By

A common criticism of R, especially from data scientists who are new to R but proficient in multiple programming languages, is that R is “quirky” and annoying because there is almost always more than one way to do simple things. I usually counter that they are trying to say that R is “flexible” and “rich”, but by the time...

## F1Stats – Correlations Between Qualifying, Grid and Race Classification

February 9, 2013
By

Following directly on from F1Stats – Visually Comparing Qualifying and Grid Positions with Race Classification, and continuing in my attempt to replicate some of the methodology and results used in A Tale of Two Motorsports: A Graphical-Statistical Analysis of How Practice, Qualifying, and Past SuccessRelate to Finish Position in NASCAR and Formula One Racing, here’s

## Happy Birthday Florence Henderson

February 9, 2013
By

As a celebration of Florence Henderson’s 79th birthday (on February 14), I have created this scatterplot to use in my regression course. The plot depicts the relationship between time spent on mathematics homework outside of school (expressed as z-scores) and … Continue reading →

## Finding a jump in data

February 9, 2013
By

The other day I saw a plot with some data with a clear jump in it. So I wondered if it were possible to determine the position of that jump. Data with a jump is easy enough made:library(ggplot2)n <- 100mydata <- data.frame(x=runif(n))mydata\$...

## Learning R Using a Chemical Reaction Engineering Book: Part 4

February 8, 2013
By
$Learning R Using a Chemical Reaction Engineering Book: Part 4$

The links to previous parts are listed here. (Part 1, Part 2, Part 3). In this part, I tried to recreate the examples in sections A.3.1 of the computational appendix in the reaction engineering book (by Rawlings and Ekerdt). Solving a … Continue reading →

## Getting staRted with R.

February 7, 2013
By

As a PhD student and researcher, I often hear friends and colleagues say that they want to learn R, but that the learning curve is so steep that they can't seem to get started.  It's true that learning any tool as powerful as R can be confusing at...

## Ryan Peek on using xts and ggplot for time-series data

February 6, 2013
By

At Davis R Users’ Group today, Ryan Peek gave a presentation on how he takes data from his field instruments and visualizes it in R. Here are his notes. The original *.Rmd file and data can be found here SHORT HOW-TO ON USING XTS AND GGPLOT FOR TIME SERIES DATA XTS is a very helpful package...