2797 search results for "ggplot2"

embed images in ggplot2 via subview and annotate a phylogenetic tree with images using inset function

March 19, 2016
By
embed images in ggplot2 via subview and annotate a phylogenetic tree with images using inset function

I extended the subview function to support embed image file in a ggplot object. set.seed(123) d = data.frame(x=rnorm(10), y=rnorm(10)) imgfile <- tempfile(, fileext=".png") download.file("https://avatars1.githubusercontent.com/u/626539?v=3&u=e731426406dd3f45a73d96dd604bc45ae2e7c36f&s=140", destfile=imgfile, mode='wb') p = ggplot(d, aes(x, y)) subview(p, imgfile, x=d$x, y=d$y) + geom_point(size=5) In previous post, I have introduced using annotation_image function for annotating tips...

Read more »

embed images in ggplot2 via subview and annotate a phylogenetic tree with images using inset function

March 19, 2016
By
embed images in ggplot2 via subview and annotate a phylogenetic tree with images using inset function

I extended the subview function to support embed image file in a ggplot object. set.seed(123) d = data.frame(x=rnorm(10), y=rnorm(10)) imgfile <- tempfile(, fileext=".png") download.file("https://avatars1.githubusercontent.com/u/626539?v=3&u=e731426406dd3f45a73d96dd604bc45ae2e7c36f&s=140", destfile=imgfile, mode='wb') p = ggplot(d, aes(x, y)) subview(p, imgfile, x=d$x, y=d$y) + geom_point(size=5) In previous post, I have introduced using annotation_image function for annotating tips...

Read more »

embed images in ggplot2 via subview and annotate a phylogenetic tree with images using inset function

March 19, 2016
By
embed images in ggplot2 via subview and annotate a phylogenetic tree with images using inset function

I extended the subview function to support embed image file in a ggplot object. set.seed(123) d = data.frame(x=rnorm(10), y=rnorm(10)) imgfile <- tempfile(, fileext=".png") download.file("https://avatars1.githubusercontent.com/u/626539?v=3&u=e731426406dd3f45a73d96dd604bc45ae2e7c36f&s=140", destfile=imgfile, mode='wb') p = ggplot(d, aes(x, y)) subview(p, imgfile, x=d$x, y=d$y) + geom_point(size=5) In previous post, I have introduced using annotation_image function for annotating tips...

Read more »

embed images in ggplot2 via subview and annotate a phylogenetic tree with images using inset function

March 19, 2016
By
embed images in ggplot2 via subview and annotate a phylogenetic tree with images using inset function

I extended the subview function to support embed image file in a ggplot object. set.seed(123) d = data.frame(x=rnorm(10), y=rnorm(10)) imgfile <- tempfile(, fileext=".png") download.file("https://avatars1.githubusercontent.com/u/626539?v=3&u=e731426406dd3f45a73d96dd604bc45ae2e7c36f&s=140", destfile=imgfile, mode='wb') p = ggplot(d, aes(x, y)) subview(p, imgfile, x=d$x, y=d$y) + geom_point(size=5) In previous post, I have introduced using annotation_image function for annotating tips...

Read more »

embed images in ggplot2 via subview and annotate a phylogenetic tree with images using inset function

March 19, 2016
By
embed images in ggplot2 via subview and annotate a phylogenetic tree with images using inset function

I extended the subview function to support embed image file in a ggplot object. set.seed(123) d = data.frame(x=rnorm(10), y=rnorm(10)) imgfile <- tempfile(, fileext=".png") download.file("https://avatars1.githubusercontent.com/u/626539?v=3&u=e731426406dd3f45a73d96dd604bc45ae2e7c36f&s=140", destfile=imgfile, mode='wb') p = ggplot(d, aes(x, y)) subview(p, imgfile, x=d$x, y=d$y) + geom_point(size=5) In previous post, I have introduced using annotation_image function for annotating tips...

Read more »

Using ProPublica “statefaces” in ggplot2

March 19, 2016
By
Using ProPublica “statefaces” in ggplot2

I’m a huge fan of ProPublica. They have a super-savvy tech team, great reporters, awesome graphics folks and excel at data-driven journalism. Plus, they give away virtually everything, including data, text, graphics & tools. I was reading @USATODAY’s piece on lead levels in drinking water across America and saw they had a mini-interactive piece included

Read more »

Variography with gstat and ggplot2

March 18, 2016
By
Variography with gstat and ggplot2

Last year I wrote a short demo on variography with gstat and ggplot2 for a colleague who was planning to migrate to R. Just thought I’d share this here (with some additional stuff) as it might be useful for other people as well.First, make sure you have the necessary packages installed and loaded:require('gstat')## Loading required package: gstatrequire('sp')## Loading required package: sprequire('ggplot2')## Loading...

Read more »

The Easiest Way to Learn ggplot2 (2)

March 16, 2016
By

In our second course on ggplot2 “Data Visualization with ggplot2 (2)”, you will take the step from exploratory to explanatory data visualization. In five chapters, you’ll get to know more ggplot layers and tools needed to create excellent visuals that can be used in many different cases. Begin learning Data Visualization with ggplot2 interactively, today.

Read more »

Adding a subtitle to ggplot2

March 14, 2016
By
Adding a subtitle to ggplot2

A couple of days ago (2016-03-12) a short blog post by Bob Rudis appeared on R-bloggers.com, "Subtitles in ggplot2". I was intrigued by the idea and what this could mean for my own plotting efforts, and it turned out to be very simple to apply. (Note that Bob's post originally appeared on his own blog,...

Read more »

ggplot2で字幕 [Subtitles in ggplot2]

March 12, 2016
By
ggplot2で字幕 [Subtitles in ggplot2]

Subtitles aren’t always necessary for plots, but I began to use them enough that I whipped up a function for ggplot2 that does a decent job adding a subtitle to a finished plot object. More than a few folks have tried their hand at this in the past and this is just my incremental contribution

Read more »

Sponsors

Mango solutions



RStudio homepage



Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training



http://www.eoda.de







ODSC

ODSC

CRC R books series





Six Sigma Online Training





Contact us if you wish to help support R-bloggers, and place your banner here.

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)