R.

Installing R Packages From Github
Installing R Packages from GitHub
17 August 2018 | by Tim Bock
Often interesting new R packages are only available on GitHub. This post shows how to install an R package from GitHub, in each of R,...

Continue reading

Example of a Sankey Diagram
How to Create Sankey Diagrams From Tables (Data Frames) Using R
17 August 2018 | by Tim Bock
In this post I show how you can use R to create a Sankey Diagram when your data is set up as a table (data...

Continue reading

blackboard with choice and arrows
How to Use Hierarchical Bayes for Choice Modeling In R
31 July 2018 | by Mathew McLean
You want to understand how your customers make decisions efficiently. Today, customers more so than ever undergo an incredibly complex decision making process. Normally, accurately...

Continue reading

Smoothing Splines with Plotly
How to add Trend Lines in R Using Plotly
23 July 2018 | by Carmen Chan
When you are conducting an exploratory analysis of time-series data, you'll need to identify trends while ignoring random fluctuations in your data. There are multiple...

Continue reading

How to Read an Excel file into R
20 July 2018 | by Carmen Chan
Excel may not be the most powerful data analysis program, but it is one of the most widely used. It should be no surprise that...

Continue reading

How to Aggregate Data in R
13 July 2018 | by Jake Hoare
You have a data set and you need to quickly organize it to perform your data analysis. Where do you start? You could create a...

Continue reading

Write Stan Code Banner
Four Ways to Write Better Stan Code
12 July 2018 | by Mathew McLean
Writing Stan programs can be tricky so if you're already familiar with it - you're ahead of the curve. But maybe you want to find...

Continue reading

How to read Stata DTA file into R
How to read Stata DTA files into R
10 July 2018 | by Carmen Chan
Large survey datasets are often provided in formats such as SAV (used by SPSS) or DTA (used by Stata). These are proprietary binary formats that...

Continue reading

Predict Customer Churn with Gradient Boosting
03 July 2018 | by Jake Hoare
Customer churn is a key predictor of the long term success or failure of a business. But when it comes to all this data, what's...

Continue reading

Squeezing time
Easily Converting Strings to Times and Dates in R with flipTime
01 February 2018 | by Mathew McLean
Date conversion in R can be a real pain. However, it is a very important initial step when you first get your data into R...

Continue reading

heated density plot
Using Heatmap Coloring on a Density Plot Using R to Visualize Distributions
29 November 2017 | by Tim Bock

Lots of different visualizations have been proposed for understanding distributions. In this post, I am going show how to create my current favorite, which is…

Continue reading

Using Displayr
How to Format Numbers, Dates, and Time Using D3 HTMLWidgets in R
27 November 2017 | by Jake Hoare

If you have ever spent any time investigating where the cool kids play in the data visualization world you will know it is all about…

Continue reading

Picture of military jet
How to Build a Geographic Dashboard with Real-Time Data
21 November 2017 | by Jake Hoare

In this post, I show how to build an interactive geographic dashboard using Displayr, Plotly and R. It is particularly fascinating in that it tracks…

Continue reading

linear discriminant analysis example
Linear Discriminant Analysis in R: An Introduction
11 October 2017 | by Jake Hoare

How does Linear Discriminant Analysis work and how do you use it in R? This post answers these questions and provides an introduction to Linear…

Continue reading

Dashboard Design: 8 Types of Online Dashboards
03 October 2017 | by Tim Bock

What type of online dashboard will work best for your data? This post reviews eight types of online dashboards to assist you in choosing the…

Continue reading

shepard diagram
Goodness of Fit in MDS and t-SNE with Shepard Diagrams
28 September 2017 | by Jake Hoare

The goodness of fit for data reduction techniques such as MDS and t-SNE can be easily assessed with Shepard diagrams. A Shepard diagram compares how far…

Continue reading

Interactive infographic
How to Create an Interactive Infographic
26 September 2017 | by Tim Bock

An interactive infographic can be used to communicate a lot of information in an engaging way. With the right tools, they are also relatively straightforward…

Continue reading

Visualization to Show a Single Number
12 Visualizations to Show a Single Number
20 September 2017 | by Tim Bock

Infographics, dashboards, and reports often need to highlight or visualize a single number. But how do you highlight a single number so that it has…

Continue reading

Keep updated with the latest in data science.