# 3152 search results for "Ggplot"

## Visualizing Chess Data With ggplot

October 29, 2015
By

There are nice visualizations from chess data: piece movement, piece survaviliy, square usage by player, etc. 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...

## 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...

## QuantumPlots with ggplot2 and spatstat

October 19, 2015
By

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....

## QuantumPlots with ggplot2 and spatstat

October 19, 2015
By

Introduction Lately, I was plotting, comparing and trying to make a sense out of a lot of spatial statistic functions. 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. J., Meyer, K. M., & Wiegand, K. (2014). Spatial scales of...

## QuantumPlots with ggplot2 and spatstat

October 19, 2015
By

Overview Introduction Function Introduction Lately, I was plotting, comparing and trying to make a sense out of a lot of spatial statistic functions. 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....

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

October 9, 2015
By

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...

## Visualizing Sort Algorithms With ggplot

September 24, 2015
By

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 ...

## Visualizing Sort Algorithms With ggplot

September 24, 2015
By

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 ...

## Using the ggplot2 library in R

September 20, 2015
By

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

## 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 →