454 search results for "boxplot"

Margin of Error by Geography in the American Community Survey (ACS)

March 14, 2016
By
Margin of Error by Geography in the American Community Survey (ACS)

Today I will demonstrate how the margin of error in American Community Survey (ACS) estimates grow as the size of the geography decreases.  The final chart that we’ll create is this: The way I interpret the above chart is this: The ACS is very confident about its state-level estimates. It’s a bit less confident about county-level estimates. But The post

Read more »

An Analysis of the Flint Michigan Water Crisis: Part 1 Initial Corrosivity

March 3, 2016
By

The Flint River in Flint, Michigan, USA, in the late 1970s. By U.S. Army Corps of Engineers, photographer unknown via Wikimedia Commons Introduction As many have heard recently residents of Flint Michigan have been rightly outraged due to the high presence of toxic chemicals including lead in their drinking water. The question arises how did

Read more »

more e’s [and R’s]

February 21, 2016
By
more e’s [and R’s]

Alex Thiéry suggested debiasing the biased estimate of e by Rhee and Glynn truncated series method, so I tried the method to see how much of an improvement (if any!) this would bring. I first attempted to naïvely implement the raw formula of Rhee and Glynn with a (large) Poisson distribution on the stopping rule

Read more »

Interactive plotting with rbokeh

February 17, 2016
By

Hello everyone! In this post, I will show you how you can use rbokeh to build interactive graphs and maps in R. What is bokeh? Bokeh is a popular python library used for building interactive plots and maps, and now it is also available in R, thanks to Ryan Hafen. It is a very powerful

Read more »

Why I use ggplot2

February 12, 2016
By
Why I use ggplot2

If you’ve read my blog, taken one of my classes, or sat next to me on an airplane, you probably know I’m a big fan of Hadley Wickham’s ggplot2 package, especially compared to base R plotting. Not everyone agrees. Among the anti-ggplot2 crowd is JHU Professor Jeff Leek, who yesterday wrote up his thoughts on the Simply Statistics...

Read more »

Clustering French Cities (based on Temperatures)

February 11, 2016
By
Clustering French Cities (based on Temperatures)

In order to illustrate hierarchical clustering techniques and k-means, I did borrow François Husson‘s dataset, with monthly average temperature in several French cities. > temp=read.table( + "http://freakonometrics.free.fr/FR_temp.txt", + header=TRUE,dec=",") We have 15 cities, with monthly observations > X=temp > boxplot(X) Since the variance seems to be rather stable, we will not ‘normalize’ the variables here, > apply(X,2,sd) Janv Fevr Mars...

Read more »

South Carolina Republican Debate with R

January 19, 2016
By
South Carolina Republican Debate with R

Continuing with the series analyzing republican debates, the latest in South Carolina confirms a few of the trends i’ve been observing, mainly that: Trump likes to repeat himself (maybe he likes to stick with what has worked so far?). Trump also likes to keep it short: everyone else says more things for longer at a time. The most...

Read more »

Water World

January 18, 2016
By
Water World

I live in Utah, an extremely dry state. Like much of the western United States, Utah is experiencing water stress from increasing demand, episodes of drought, and conflict over water rights. At the same time, Utahns use a lot of water per capita compared to residents of other states. According to the United States Geological Survey, in...

Read more »

Annotate a phylogenetic tree with insets

January 11, 2016
By
Annotate a phylogenetic tree with insets

ggtree implemented a function, subview, that can add subplots on a ggplot2 object. It had successful applied to plot pie graphs on map. set.seed(2016-01-04) tr <- rtree(30) tr <- groupClade(tr, node=45) p <- ggtree(tr, aes(color=group)) + g...

Read more »

More republican debate analysis with R

January 6, 2016
By
More republican debate analysis with R

A few weeks late, here is a follow-up analysis using R, of the transcript of the latest Republican primary debate held at Las Vegas, Nevada. Like the previous post, it should be interesting to see some word-clouds and some trends from the front-runners (and of course, Donald Trump). Getting and cleaning the data As in the last post, we’re going to import...

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)