2909 search results for "ggplot"

Automate the Boring Stuff: GGPlot2

November 26, 2015
By
Automate the Boring Stuff: GGPlot2

The majority of my interaction with the ggplot2 package involves the interactive execution of code to visualize data within the context of exploratory data analysis. This is often a manual process and quite laborious. I recently sought to improve these tasks by creating a series of user defined functions that contained my most commonly used

Read more »

Visualizing MLS Player Salaries with ggplot2

November 23, 2015
By
Visualizing MLS Player Salaries with ggplot2

Recently, I came across this great visualization of MLS Player salaries. I tried to do something similar with ggplot2, and while I was unable to replicate the interactivity or the tree-map nature of the graph, the graph still looks pretty cool. Data The data is contained in this pdf file. I obtained a CSV file

Read more »

Visualizing Chess Data With ggplot

October 29, 2015
By
Visualizing Chess Data With ggplot

There are nice visualizations from chess data: piece movement, piece survaviliy, square usage by player. Sadly not always the authors shows the code/data for replicate the final result. So I wrote some code to show how to do some this great visualizations entirely in R. Just for fun. The Data Piece Movements Survival rates Square usage by player Distributions for the first...

Read more »

Mapping with ggplot: Create a nice choropleth map in R

October 27, 2015
By

I was working on making a map in R recently and after an extensive search online, I found a hundred different ways to do it and yet each way didn't work quite right for my data and what I wanted to do. Eventually, I found a way to make it work after p...

Read more »

QuantumPlots with ggplot2 and spatstat

October 19, 2015
By
QuantumPlots with ggplot2 and spatstat

Overview Introduction Function Introduction Lately, I was plotting a lot of spatial statistic functions, comparing them and trying to make a sense out of them. To facilitate the procedure I wrote the following function to create a plot for the spatstat class ‘fv’, combined with ‘Quantum Plots’ from: Esser, D. S., Leveau, J. H....

Read more »

Seasonal adjusment on the fly with X-13ARIMA-SEATS, seasonal and ggplot2

October 9, 2015
By
Seasonal adjusment on the fly with X-13ARIMA-SEATS, seasonal and ggplot2

Calling seasonal adjustment software from R I recently explored for the first time (having languished on the “check this out later” list) Christoph Sax’s excellent {seasonal} R package. It makes it super easy for R users to engage with X-13ARIMA-SEATS, the latest industry standard software for time series analysis and in particular seasonal adjustment of official statistics...

Read more »

Visualizing Sort Algorithms With ggplot

September 24, 2015
By
Visualizing Sort Algorithms With ggplot

Have you read Visualizing Algorithms by Mike Bostock? It's a pure gold post. In that post Mike show a static representation of a sort algorith and obvious it will fun to replicate that image with ggplot. So here we go. We need some sorts algorihms. In this link you can see some algorithms. We start with Insertion Sort: insertion_sort_steps <- function(x ...

Read more »

Using the ggplot2 library in R

September 20, 2015
By
Using the ggplot2 library in R

In this article, I will show you how to use the ggplot2 plotting library in R. It was written by Hadley Wickham. If you don’t have already have it, install it and load it up: install.packages('ggplot2') library(ggplot2) qplot qplot is the quickest way to get off the ground running. For this demonstration, we will use

Read more »

TIL what happens if you use %>% instead of + in ggplot2

September 16, 2015
By

This post is about ggplot2 and dplyr packages, so let’s start with loading them: I can’t be the first person to make the following mistake: Can you spot the mistake in the code above? Look closely at the end of the first … Continue reading →

Read more »

Roll Your Own Stats and Geoms in ggplot2 (Part 1: Splines!)

September 8, 2015
By
Roll Your Own Stats and Geoms in ggplot2 (Part 1: Splines!)

A huge change is coming to ggplot2 and you can get a preview of it over at Hadley’s github repo. I’ve been keenly interested in this as I will be fixing, finishing & porting coord_proj to it once it’s done. Hadley & Winston have re-built the ggplot2 with an entirely new object-oriented system called ggproto.

Read more »

Sponsors

Mango solutions



plotly webpage

dominolab webpage



Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training

datasociety

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)