435 search results for "boxplot"

Boxplots or raw data graphs?

October 14, 2010
By
Boxplots or raw data graphs?

We recently had a dilemma for an OSI publication about the design for the graphs. There will be dozens of these graphs showing the mean score on a given variable for nearly 11000 parents from 10 countries. This example is for household wealth which has values ranging from 0 to 16. These are the three

Read more »

Labeled outliers in R boxplot

Labeled outliers in R boxplot

Boxplots are a good way to get some insight in your data, and while R provides a fine ‘boxplot’ function, it doesn’t label the outliers in the graph. However, with a little code you can add labels yourself:The numbers plotted next to ...

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 »

ggplot 2.0.0

December 22, 2015
By

I’m very pleased to announce the release of ggplot2 2.0.0. I know I promised that there wouldn’t be any more updates, but while working on the 2nd edition of the ggplot2 book, I just couldn’t stop myself from fixing some long standing problems. On the scale of ggplot2 releases, this one is huge with over

Read more »

The Pirate Plot – An R Pirate’s favorite plot

December 10, 2015
By
The Pirate Plot – An R Pirate’s favorite plot

One of the most common types of datasets people want to plot is one where there is a continuous dependent variable – like age, company profit, or beard length – as a function of a categorical independent variable – like gender, a specific company, or one’s pirate ship. Unfortunately, despite the vast improvements in computational ...

Read more »

My First (R) Shiny App: An Annotated Tutorial

December 5, 2015
By
My First (R) Shiny App: An Annotated Tutorial

I’ve been meaning to learn Shiny for 2 years now… and thanks to a fortuitous email from @ImADataGuy this morning and a burst of wild coding energy about 5 hours ago, I

Read more »

Using knitr and R to make instructor/student handout versions

November 29, 2015
By

I teach some of my lab sections using R, and so I need to create lab handouts that include nicely formatted R commands and R output as an example for the students. These handouts will also include exercises where the students will be writing their own R code, or interpreting the results, or generating figures.

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)