2494 search results for "ggplot2"

Making Back-to-Back Histograms

June 10, 2014
By
Making Back-to-Back Histograms

A colleage of mine asked me how to do back to back histograms (instead of on top of each other). I feel as though there should be a function like voilin plot from the vioplot package. Voilin plots are good for displaying data, but the violin must have the left and right (or top and

Read more »

The Three Little Pigs

June 8, 2014
By
The Three Little Pigs

Jesse, you asked me if I was in the meth business or the money business. Neither. I’m in the empire business (Walter White in Breaking Bad) The game of pig has simple rules but complex strategies. It was described for the first time in 1945  by a magician called John Scarne. Playing the pig game

Read more »

A simple workflow for using R with Microsoft Office products

June 5, 2014
By
A simple workflow for using R with Microsoft Office products

The challenge of integrating Microsoft products with R software has been an outstanding issue for several years. Reasons for these issues are complicated and related to fundamental differences in developing proprietary vs open-source products. To date, I don’t believe there has been a satisfactory solution but I present this blog as my attempt to work

Read more »

str Implementation for Data Frames

June 5, 2014
By

The str function is perhaps the most useful function in R. It provides great information about the structure of some object. When I teach R, especially for those coming from SPSS, the str function for data frames provides the information they are use to seeing on the variable view tab. However, sometimes I want to display the information str...

Read more »

Cohort analysis with R – “layer-cake graph” (part 2)

Cohort analysis with R – “layer-cake graph” (part 2)

Continue to exploit great idea of ‘layer-cake’ graph. If you like approach I shared in previous topic, perhaps you have one or two questions we should answer. Recall “Total revenue by Cohort” chart : As total revenue depends on number of customers we attracted and on amount of money each of them spent with us, it has sense to... Read More »

Read more »

Are they happy at school? PISA data and visualisation challange @ useR!2014

June 3, 2014
By
Are they happy at school? PISA data and visualisation challange @ useR!2014

I hope you have already heard about DataVis contest at useR!2014 (in case you did not, here is more information: http://www.oecd.org/pisa/pisaproducts/datavisualizationcontest.htm). As a jury member I am not going to submit any work, but I am going to encourage you to play with the data, crunch a finding and submit interesting plot. How easy is

Read more »

Collaborative lesson development with GitHub

June 2, 2014
By

If you're doing any kind of scientific computing and not using version control, you're doing it wrong. The git version control system and GitHub, a web-based service for hosting and collaborating on git-controlled projects, have both become wildly popu...

Read more »

Shading between two lines – ggplot

June 1, 2014
By
Shading between two lines – ggplot

First one to say geom_ribbon loses. I was plotting some data for a colleague, had two lines (repeated experiment) per person (time on the x axis) facetted by id, I thought it’d be nice to shade the area between the … Continue reading →

Read more »

Analyzing the 2011-2012 California Health Inteview Survey with R

June 1, 2014
By
Analyzing the 2011-2012 California Health Inteview Survey with R

The California Health Interview Survey (CHIS) is a remarkable biannual survey of health status, care access, and demographics for California residents. The 2011-2012 public use survey data has recently been released and is freely available after registering at the CHIS site. CHIS currently offers data in SAS, Stata, and SPSS formats. However, thanks to a...

Read more »

Autocorrelation in project Tycho’s measles data

June 1, 2014
By
Autocorrelation in project Tycho’s measles data

Project Tycho includes data from all weekly notifiable disease reports for the United States dating back to 1888. These data are freely available to anybody interested.I have looked at Ptoject Tycho's measles data before, general look, incidence,...

Read more »

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)