1830 search results for "ggplot2"

Annotating select points on an X-Y plot using ggplot2

June 16, 2013
By
Annotating select points on an X-Y plot using ggplot2

or, Is the Seattle Mariners outfield a disaster?The BackstoryEarlier this week (2013-06-10), a blog post by Dave Cameron appeared at USS Mariner under the title “Maybe It's Time For Dustin Ackley To Play Some Outfield”. In the first paragraph, Cameron describes to the Seattle Mariners outfield this season as “a complete disaster” and Raul Ibanez as...

Read more »

Advanced settings in ggplot2 (R)

June 13, 2013
By
Advanced settings in ggplot2 (R)

Here is a post with some information to control the layout of your graph produced by the ggplot library: http://rpubs.com/Lionel/6557 Enjoy!Filed under: R and Stat Tagged: ggplot, R

Read more »

Using R: drawing several regression lines with ggplot2

June 2, 2013
By
Using R: drawing several regression lines with ggplot2

Occasionally I find myself wanting to draw several regression lines on the same plot, and of course ggplot2 has convenient facilities for this. As usual, don’t expect anything profound from this post, just a quick tip! There are several reasons we might end up with a table of  regression coefficients connecting two variables in different

Read more »

”How to draw the line” with ggplot2

May 30, 2013
By
”How to draw the line” with ggplot2

In a recent tutorial in the eLife journal, Huang, Rattner, Liu & Nathans suggested that researchers who draw scatterplots should start providing not one but three regression lines. I quote, Plotting both regression lines gives a fuller picture of the data, and comparing their slopes provides a simple graphical assessment of the correlation coefficient. Plotting

Read more »

ggplot2 graphics in a loop

April 29, 2013
By

A client has a specific audit they perform quarterly across 200 of their manufacturing plants. The audit has 8 distinct sections examining the different areas of the plant (shipping, receiving, storage, packaging,etc.) Instead of having one cumulative final score, the audit displays a final score for each section. I wanted to examine the distribution of

Read more »

Interacting, on demand, with 2012 best cities data and plotting different graphs —- Experiments with ggplot2 on shiny server

April 25, 2013
By
Interacting, on demand, with 2012 best cities data and plotting different graphs —- Experiments with ggplot2 on shiny server

Data from slides on Bloomberg businessweek's site: http://images.businessweek.com/slideshows/2012-09-26/americas-50-best-citiesIn this post, I show how one can interact with a dataset and generate graphs on the fly (technically, I've predetermined...

Read more »

Using ggplot2 to recreate 2012 Best Cities Results

April 18, 2013
By
Using ggplot2 to recreate 2012 Best Cities Results

Data from: http://images.businessweek.com/slideshows/2012-09-26/americas-50-best-citiesThis time, I used ggplot2 to recreate the graphs created previously using Tableau. After all, R and ggplot2 are open source and free. Yes, I could leave a space...

Read more »

A quick introduction to ggplot2

April 10, 2013
By

My friend Jonah asked me to guest lecture in his R seminar aimed at grad students and postdocs in Integrative Biology. I gave Jonah a bunch of topic options ranging from reproducible research with R to data manipulation. The consensus was data visualization so I put together a 2 hour talk/hands on presentation for ggplot2

Read more »

R 3.0 released; ggplot2 stat_summary bug fixed!

April 4, 2013
By

The new version of R was released yesterday. As I understand it, the numbering change to 3.0 represents the recognition that R had evolved enough to justify a new number rather than the addition of many new features. There are some important new featur...

Read more »

Colour it up: my quest to master ggplot2 (part 2)

April 3, 2013
By

Your browser does not support iframes.

Read more »