2105 search results for "ggplot2"

My Commonly Done ggplot2 graphs: Part 2

December 18, 2014
By
My Commonly Done ggplot2 graphs: Part 2

In my last post I described some of my commonly done ggplot2 graphs. It seems as though some people are interested in these, so I was going to follow this up with other plots I make frequently. Scatterplot colored by continuous variable The setup of the data for the scatterplots will be the same as

Read more »

Interactive 2D & 3D Plots with Plotly and ggplot2

December 16, 2014
By
Interactive 2D & 3D Plots with Plotly and ggplot2

by Matt Sundquist co-founder of Plotly R, Plotly, and ggplot2 let you make, share, and collaborate on beautiful, interactive plots online. Let's see what we can do with the topographic data from Auckland's Maunga Whau Volcano that comes with R. Copy and paste this R code to make your first plot. The basic idea is: use ggplot2 code, add...

Read more »

Don’t teach built-in plotting to beginners (teach ggplot2)

December 15, 2014
By
Don’t teach built-in plotting to beginners (teach ggplot2)

I have some experience teaching R programming (see, for instance, my online course). One of the atypical choices I make is to start by teaching Hadley Wickham’s ggplot2 package, rather than the built-in R plotting (see these videos). Many times that I mention this choice to others involved in statistics education, they treat it like a mistake...

Read more »

3D Plots with ggplot2 and Plotly

November 11, 2014
By
3D Plots with ggplot2 and Plotly

by Matt Sundquist Plotly, co-founder Plotly is a platform for data analysis, graphing, and collaboration. You can use ggplot2, Plotly's R API, and Plotly's web app to make and share interactive plots. Now, you can you can also make 3D plots. Immediately below are a few examples of 3D plots. In this post we will show how to make...

Read more »

ggplot2: Elegant Graphics for Data Analysis

November 5, 2014
By

ggplot2 is a plotting system for R, based on the grammar of graphics by Hadley Wickham. ggplot2 tries to take the good parts of base and lattice graphics and none of the bad parts. As a contributor to the package, Dr. Dennis Murphy was able to paint a clear picture on how ggplot2 takes care of many of the fiddly...

Read more »

My Commonly Done ggplot2 graphs

October 30, 2014
By
My Commonly Done ggplot2 graphs

In my last post, I discussed how ggplot2 is not always the answer to the question “How should I plot this” and that base graphics were still very useful. Why Do I use ggplot2 then? The overall question still remains: why (do I) use ggplot2? ggplot2 vs lattice For one, ggplot2 replaced the lattice package

Read more »

How to publish R and ggplot2 to the web

September 23, 2014
By
How to publish R and ggplot2 to the web

by Matt Sundquist, Plotly Co-founder It's delightfully smooth to publish R code, plots, and presentations to the web. For example: Shiny makes interactive apps from R. Pretty R highlights R code for HTML. Slidify makes slides from R Markdown. Knitr and RPubs let you publish R Markdown docs. GitHub and devtools let you quickly release packages and collaborate. Now,...

Read more »

Using great circles and ggplot2 to map arrival/departure of 2014 US Open Tennis Players

September 17, 2014
By
Using great circles and ggplot2 to map arrival/departure of 2014 US Open Tennis Players

Please click on the image for information on how to use R and ggplot2 to generate this plot. 

Read more »

Some love for ggplot2

August 25, 2014
By
Some love for ggplot2

With all the recent buzz about ggvis (this, this, and this) it’s often easy to forget all that ggplot2 offers as a graphics package. True, ggplot is a static approach to graphing unlike ggvis but it has fundamentally changed the way we think about plots in R. I recently spent some time thinking about some

Read more »

Review of “Building interactive graphs with ggplot2 and shiny”

August 4, 2014
By

Recently, Packt published a video course with the above title, and I've just spent a pleasant morning reviewing it on Packt's request. Pleasant, because I think the course gives an excellent introduction to both ggplot2 and shiny. The course is … Continue reading →

Read more »