93 search results for "ggplot background grid colour"

Shape File Selfies in ggplot2

April 11, 2014
By
Shape File Selfies in ggplot2

In this post you will learn how to: Create your own quasi-shape file Plot your homemade quasi-shape file in ggplot2 Add an external svg/ps graphic to a plot Change a grid grob's color and alpha *Note get simple .md version … Continue reading →

Read more »

A Simple Introduction to the Graphing Philosophy of ggplot2

March 28, 2014
By
A Simple Introduction to the Graphing Philosophy of ggplot2

Blog post: a very basic introduction to building data plots using ggplot2 in R. #Rstats

Read more »

ggplot2: Cheatsheet for Visualizing Distributions

February 18, 2014
By
ggplot2: Cheatsheet for Visualizing Distributions

In the third and last of the ggplot series, this post will go over interesting ways to visualize the distribution of your data.

Read more »

Add a background png image to ggplot2

February 16, 2014
By
Add a background png image to ggplot2

Hey everybody, this is just a short post but I found it very useful. I want to show you how to add images as a background to your ggplot2 plots. To do so we need the packages png and grid Btw, this is just a cool and fast way to import different packages at once. …

Read more »

ggplot2 with Noam Ross theme

July 26, 2013
By
ggplot2 with Noam Ross theme

When I first saw Noam Ross' blog post "The null model for age effects with overdispersed infection", I immediately liked the look of his ggplot2 graphs. I was even more delighted when I discovered that he has made his theme available on github. Even though I am all into rCharts, I still love a beautiful publication...

Read more »

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 »

Exporting plain, lattice, or ggplot graphics

March 6, 2013
By
Exporting plain, lattice, or ggplot graphics

A blend between a basic scatterplot, lattice scatterplot and a ggplot In a recent post I compared the Cairo packages with the base package for exporting graphs. Matt Neilson was kind enough to share in...

Read more »

Change fonts in ggplot2, and create xkcd style graphs

February 17, 2013
By
Change fonts in ggplot2, and create xkcd style graphs

Installing and changing fonts in your plots comes now easy with the extrafonts-package. There is a excellent tutorial on the extrafonts github site, still I will shortly demonstrate how it worked for me. First, install the package and load it. You can now install the desired system fonts (at the moment only TrueType fonts): The

Read more »

#14 A New GGPLOT Template

February 13, 2013
By
#14 A New GGPLOT Template

  So the opts() has now been given the boot, and all the cool kids are using theme() to customise their ggplots. If you’re still on an old version of R then theme() will still work, but if you update (which you should) then it’ll stop working and you’ll have to edit all your code

Read more »

#13 Mapping in R: Representing geospatial data together with ggplot

February 1, 2013
By
#13 Mapping in R: Representing geospatial data together with ggplot

I have been trawling around for a while now trying to find a simple and understandable way of representing geospatial data in R, whilst retaining the ability to manipulate the visualisation in ggplot. After much searching I came across some articles which got me to a working product only after a lot of ball ache.

Read more »