2066 search results for "ggplot2"

R Recipe: Aligning Axes in ggplot2

May 27, 2015
By
R Recipe: Aligning Axes in ggplot2

Faceted plots in ggplot2 are phenomenal. They give you a simple way to break down an array of plots according to the values of one or more categorical variables. But what if you want to stack plots of different variables? Not quite so simple. But certainly possible. I gathered together this solution from a variety The post

Read more »

A quick, incomplete comparison of ggplot2 & rbokeh plotting idioms

May 26, 2015
By
A quick, incomplete comparison of ggplot2 & rbokeh plotting idioms

I set aside a small bit of time to give rbokeh a try and figured I’d share a small bit of code that shows how to make the “same” chart in both ggplot2 and rbokeh. What is Bokeh/rbokeh? rbokeh is an htmlwidget wrapper for the Bokeh visualization library that has become quite popular in Python

Read more »

Put Google Scholar citations on your personal website with R, scholar, ggplot2 and cron

May 20, 2015
By
Put Google Scholar citations on your personal website with R, scholar, ggplot2 and cron

I have been looking for a solution to put my Google Scholar citations on my personal website for quite some time now. Some apps/gadgets seem to have existed to do so (e.g. citations-gadget), but none seem to be functioning today because of chan...

Read more »

Reinventing the wheel for ordination biplots with ggplot2

May 14, 2015
By
Reinventing the wheel for ordination biplots with ggplot2

I’ll be the first to admit that the topic of plotting ordination results using ggplot2 has been visited many times over. As is my typical fashion, I started creating a package for this purpose without completely searching for existing solutions. Specifically, the ggbiplot and factoextra packages already provide almost complete coverage of plotting results from

Read more »

All Paths Lead to the EARL Conference with ggplot2 & ggmap

May 11, 2015
By
All Paths Lead to the EARL Conference with ggplot2 & ggmap

By Rich Pugh, Commercial Director I was recently at LondonR, where I saw James Cheshire discussing the ways in which he created stunning maps for his book, London:  The Information Capital, using R.  If you want a glimpse of James’ … Continue reading →

Read more »

Course Profiles in ggplot2

April 23, 2015
By
Course Profiles in ggplot2

Over on my other blog, Droppin’ The Hammer… where I journal my ultra running experience, I featured a novel ggplot2 plot for highlight elevation gain and loss on running race course profiles. If you’ve never run a particular race you...

Read more »

Project Tycho, ggplot2 and the shameless stealing of blog ideas

April 14, 2015
By
Project Tycho, ggplot2 and the shameless stealing of blog ideas

Last week, Mick Watson posted a terrific article on using R to recreate the visualizations in this WSJ article on the impact of vaccination. Someone beat me to the obvious joke. @BioMickWatson @pathogenomenick Nice quilt plot. — Ed Yong (@edyong209) April 9, 2015 Someone also beat me to the standard response whenever base R graphics

Read more »

ggExtra: R package for adding marginal histograms to ggplot2

March 28, 2015
By
ggExtra: R package for adding marginal histograms to ggplot2

My first CRAN package, ggExtra, contains several functions to enhance ggplot2, with the most important one being ggExtra::ggMarginal() - a function that finally allows easily adding marginal density plots or histograms to scatterplots. Availability You can read the full README describing the functionality in detail or browse the source code on GitHub. The package is available through both...

Read more »

Remove leading 0 with ggplot2.

March 22, 2015
By
Remove leading 0 with ggplot2.

I recently had an occasion while working on a three variable interaction plot for a paper where I wanted to remove the leading 0's in the x-axis text labels using ggplot2. This was primarily due to some space concerns I had for the x-axis labels. Unfor...

Read more »

Part 3b: EDA with ggplot2

March 16, 2015
By
Part 3b: EDA with ggplot2

In Part 3a I have introduced the plotting system ggplot2. I talked about its concept and syntax with some detail, and then created a few general plots, using the weather data set we've been working with in this series of tutorials. My goal was to show ...

Read more »