Blog Archives

Replicating Plots: Oil Pathways

February 7, 2020
By
Replicating Plots:  Oil Pathways

Intro I was inspired by this graphic on Yahoo Finance. In the TidyTuesday spirit, I set out to recreate it using ggplot2. There were a few things I would have to figure out - how to apply ggtext to an annotation, how to draw a curved arrow, and how to create a pinhole like border around the graphic. That last...

Read more »

Autumn Barnsley Fern

October 12, 2019
By
Autumn Barnsley Fern

Intro I was playing around generating fractals in R when I realized the monochromatic green Barnsely Fern I had on my screen didn’t quite look like the leaves I could see outside my window. It was already Fall. In this post I describe a technique to generate a Barnsley Fern with autumn foliage. The Barnsley Fern First, we generate the Barnsley Fern. #------------...

Read more »

Exploration of 3D Fractals

August 22, 2019
By

Intro In an earlier post, I introduced a function to generate fractals based on regular polygons. In this post I explore doing the same in 3D. library(dplyr) library(plotly) library(RColorBrewer) Fractals in 3D In my previous post on 2D fractals, my function used a formula to generate the starting coordinates for the selected regular polygon. In this case, I have resorted to including the coordinates for...

Read more »

recursive shape fractal generator

August 19, 2019
By
recursive shape fractal generator

Intro This function allows us to generate the Sierpinski Triangle and explore other recursive shapes with equal length sides following the same algorithm. shape

Read more »

Stacked Waterfall Graphs in R

June 21, 2019
By
Stacked Waterfall Graphs in R

Intro In an earlier post I provided a template for creating a basic waterfall graph. Here I introduce a slightly more complex version with stacked bars over a time series. I use dplyr, ggplot2 and lubridate libraries. Stacked Waterfall Graphs This is a version of a waterfall graph I have found useful for showing delivery of commitments over time. The scenario is...

Read more »

Basic Waterfall Graphs in R

May 26, 2019
By
Basic Waterfall Graphs in R

Intro Waterfall graphs are an effective visualization of what could be many increments and decrements that account for the difference between two values. In management information systems, for example, these graphs are often used to represent how an organization uses its budget, or how each product line contributed to total sales. In the following article, I provide a template for...

Read more »

Search R-bloggers

Sponsors

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)