1831 search results for "ggplot"

Combining Base+Grid Graphics

October 4, 2011
By
Combining Base+Grid Graphics

R provides several frameworks for composing figures. Base graphics is the simplest, grid is more advanced, and the lattice/ggplot packages provide convenient abstractions of the grid graphics system. Multi-element figures can be readily created in base...

Read more »

Latent class mixed models – with graphics

October 2, 2011
By
Latent class mixed models – with graphics

Foreword Apologies that the output isn’t showing well as far as spacing and alignment is concerned. Am working on fixing that! Background Generally when we have a set of data, we have known groupings. Be that three different treatment groups, … Continue reading →

Read more »

Dollars and cents: How are you at estimating the total bill?

September 30, 2011
By
Dollars and cents: How are you at estimating the total bill?

When estimating the cost of a bunch of purchases, a useful heuristic is rounding to the nearest dollar. (In fact, on US income tax returns, one is allowed to omit the cents). If prices were uniformly distributed, the following two heuristics would be equally accurate:* Rounding each item up or down to the nearest dollar and summing * Rounding each...

Read more »

ttrTests This is a Test Test 3:Data Snoopy

September 30, 2011
By
ttrTests This is a Test Test 3:Data Snoopy

THIS IS NOT INVESTMENT ADVICE.  IT IS JUST AN EXAMPLE AND WILL LIKELY LOSE LOTS OF MONEY IF YOU PURSUE WHAT IS DISCUSSED.  READER IS RESPONSIBLE FOR THEIR OWN GAINS OR LOSSES.  IF YOU ARE AN UNLIKELY WINNER, I WOULD LOVE TO HEAR YOUR STO...

Read more »

Microfinance Map of India – another go…

September 30, 2011
By
Microfinance Map of India – another go…

I gave it another go, trying to get a map that looks a bit nicer. This time, I tried to compute something like a density or intensity in a certain area. On the previous map, this was not visible very well. I used ggplot2 and a bit of R code, together with RGoogleMaps to produce the

Read more »

Monitoring Productivity II – the Others

September 30, 2011
By
Monitoring Productivity II – the Others

In previous Monitoring Productivity Experiment post I looked into the hours I spent in computer, now will look into the hours Others spend in computer, which is far more interesting :) To find things like what day people spend more time on computer, ho...

Read more »

Customizing your .rprofile

September 29, 2011
By

I searched around to see if there was a blog post somewhere describing how to customize one’s .rprofile but was surprised to find just one outdated post. So here is quick intro on the topic. If you are a power R user, you already know about what it does. For those of you that don’t,

Read more »

Googling Bayes’ pictures

September 29, 2011
By
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 … Continue reading →

Read more »

ttrTests This is a Test–Test 1 and Test 2

September 28, 2011
By
ttrTests This is a Test–Test 1 and Test 2

Just to remind everyone, THIS IS NOT INVESTMENT ADVICE AND ANY ACTIONS TAKEN BASED ON THIS DISCUSSION WILL PROBABLY RESULT IN SIGNIFICANT LOSSES. We had fun with the ttrTests package in two previous posts ttrTests: Its Great Thesis and Incredible Poten...

Read more »

Using transparency for data count intuition

September 27, 2011
By
Using transparency for data count intuition

This is an illustration of representing point count in a graphic using transparency. This is easy to do in ggplot2 if you use one of the barchart type of geoms.  However I think there are other situations where it would be useful to apply aesthetics based on point count. Since Hadley did a lot of

Read more »