2265 search results for "ggplot"

Data analysis example with ggplot and dplyr (analyzing ‘supercar’ data, part 2)

December 23, 2014
By
Data analysis example with ggplot and dplyr (analyzing ‘supercar’ data, part 2)

For our purposes here, data exploration is the application of data visualization and data manipulation techniques to understand the properties of our dataset. We’re going to be looking for interesting features: things that stand out, trends, and relationships between variables. The post Data analysis example with ggplot and dplyr (analyzing ‘supercar’ data, part 2) appeared first on

Read more »

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 »

Visualizing (generalized) linear mixed effects models with ggplot #rstats #lme4

October 26, 2014
By
Visualizing (generalized) linear mixed effects models with ggplot #rstats #lme4

In the past week, colleagues of mine and me started using the lme4-package to compute multi level models. This inspired me doing two new functions for visualizing random effects (as retrieved by ranef()) and fixed effects (as retrieved by fixed()) of (generalized) linear mixed effect models. The upcoming version of my sjPlot package will contain

Read more »

Overcoming D3 Cartographic Envy With R + ggplot

September 25, 2014
By
Overcoming D3 Cartographic Envy With R + ggplot

When I used one of the Scotland TopoJSON files for a recent post, it really hit me just how much D3 cartography envy I had/have as an R user. Don’t get me wrong, I can conjure up D3 maps pretty well and the utility of an interactive map visualization goes without saying, but

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 »