Visualizing Bootrapped Stepwise Regression in R using Plotly
We all have used stepwise regression at some point. Stepwise regression is known to be sensitive to initial inputs. One way to mitigate this sensitivity is to repeatedly run stepwise regression on...
View ArticleRadial bar charts in R using Plotly
Creating a radial barchart is fairly easy using plotly. In this post we’ll focus on modifying a radial line chart to make it look like a bar chart so come up with a nice visualization for CO2...
View ArticleRadar charts in R using Plotly
This post is inspired by this question on Stack Overflow.. We’ll show how to create excel style Radar Charts in R using the plotly package. library(plotly) library(dplyr) # Read in data df <-...
View ArticleInteractive Q-Q Plots in R using Plotly
Introduction In a recent blog post, I introduced the new R package, manhattanly, which creates interactive manhattan plots using the plotly.js engine. In this post, I describe how to create interactive...
View ArticleMacroeconomic charts by the Fed using R and Plotly
In this post we’ll try to replicate some of the charts created by the Federal Reserve which visualize some well known macroeconomic indicators. We’ll also showcase the new Plotly 4.0 syntax. Key...
View ArticleTime series charts by the Economist in R using Plotly
In this post we’ll recreate two info graphics created by The Economist. The code uses the new Plotly 4.0 syntax. Note: Plotly 4.0 has not been officially released yet. You can download the dev version...
View ArticlePrincipal Component Analysis Cluster Plots with Plotly
The Problem When clustering data using principal component analysis, it is often of interest to visually inspect how well the data points separate in 2-D space based on principal component scores....
View ArticleCandlestick charts using Quandl and Plotly
In this post we’ll show how to create candle stick charts using the new plotly 4.0 syntax. You can refer to this older post as well. This time we’ll use the Quandl package to retrieve stock data. See...
View ArticleNew feature: Dropdown menus in Plotly and R
In this post we’ll showcase the new dropdown menu button feature. It adds a layer of interactivity that is similar to shiny but supported within the plotly package. Adding new menu buttons is as simple...
View ArticleUsing cranlogs in R with Plotly
In this post we’ll use the cranlogs package to visualize the number of downloads for Plotly’s R API library(cranlogs) library(plotly) library(zoo) # Get data df <- cran_downloads(packages =...
View ArticleNBA shots analysis using Plotly shapes
In this post, we will analyse the shots by Stephen Curry, ‘Top Scorer’ of the NBA season 2015-16. You can create SVG shapes like line, circle, rectangle, and path using Plotly’s shapes feature. With...
View ArticleAnalyzing Plotly’s Python package downloads
In this post, we will collect and analyze download statistics for Plotly’s Python package available on PyPI. We will also compare the downloads with other interactive charting tools like Bokeh,...
View ArticleRadial Stacked Area Chart in R using Plotly
In this post we’ll quickly show how to create radial stacked ara charts in plotly. We’ll use the AirPassengers dataset. Inspired by Mike Bostocks post: http://bl.ocks.org/mbostock/3048740...
View ArticleVisualizing ROC Curves in R using Plotly
In this post we’ll create some simple functions to generate and chart a Receiver Operator (ROC) curve and visualize it using Plotly. See Carson’s plotly book for more details around changes in syntax....
View ArticleFilled Chord Diagram in R using Plotly
In this post we’ll create a Filled Chord Diagram using plotly. The post is inspired by Plotly’s Python documentation. Install / update packages Just to ensure we are working with the latest dev version...
View ArticleNHL shots analysis using Plotly shapes
In this post, we will analyse the shots by P. K. Subban for the season 2015-16. He is a defenceman for the Nashville Predators of the National Hockey League. It’s the second post in the series of posts...
View ArticleAnimations in R using Plotly
Like last year, lets have some fun with the Plotly package. We’ll try out Plotly’s new animation capabilities.library(plotly) rm(list = ls()) gc() # Options for plotting ---- x <- 0.2 y <- 0.72...
View ArticleFunnel charts in Python using Plotly
Funnel Charts are often used to represent data in different stages of a business process. It’s an important mechanism in Business Intelligence to identify potential problem areas of a process. For...
View ArticleHeatmaps with padding gaps in Plotly
This post will introduce you to xgap and ygap fields for Plotly Heatmaps. You can set horizontal and vertical gap (in pixels) between the heatmap bricks using these fields. We will create two different...
View ArticleSegmented Funnel charts in Python using Plotly
Funnel Charts are often used to represent data in different stages of a business process. You can learn more about them in our previous post, Funnel charts in Python using Plotly. In this post, we will...
View Article