Blog

We provide practical tutorials on data mining, visualization and statistics for decision making.

This article describes how create easily an interactive web framework for exploring data in R using the datadigest package. This tool provides a concise summary of every variable in a data frame and includes interactive features such as real-time filters, grouping, and highlighting. This...

Simple Interactive Framework for Exploring Data in R

This article describes how create easily an interactive web framework for exploring data in R using the datadigest package. This tool provides a concise summary of every variable in a data frame and includes interactive features such as real-time filters, grouping, and highlighting. This...

This article shows how to visualize one numeric variable against multiple others. Prerequisites Load required R package and set the default theme to theme_bw() : library(tidyverse) theme_set( theme_bw() + theme(legend.position = "top") ) Data preparation Demo data: head(iris, 3) ## Sepal.Length Sepal.Width Petal.Length Petal.Width...

How to Plot One Variable against Multiple Others

This article shows how to visualize one numeric variable against multiple others. Prerequisites Load required R package and set the default theme to theme_bw() : library(tidyverse) theme_set( theme_bw() + theme(legend.position = "top") ) Data preparation Demo data: head(iris, 3) ## Sepal.Length Sepal.Width Petal.Length Petal.Width...

You will learn how to plot all variables in a data frame using the ggplot2 R package. Prerequisites Load required R package and set the default theme to theme_minimal() : library(tidyverse) theme_set( theme_minimal() + theme(legend.position = "top") ) Data preparation Demo data: head(iris, 3)...

How to Plot All Variables in a Dataset

You will learn how to plot all variables in a data frame using the ggplot2 R package. Prerequisites Load required R package and set the default theme to theme_minimal() : library(tidyverse) theme_set( theme_minimal() + theme(legend.position = "top") ) Data preparation Demo data: head(iris, 3)...

This article describes how to plot a correlation network in R using the corrr package. Related article: Easy Correlation Matrix Analysis in R Using Corrr Package Contents: Load required R packages Data Compute correlation matrix Create a correlation network Cleaning up the correlation network...

Easily Create a Correlation Network in R using the Corrr Package

This article describes how to plot a correlation network in R using the corrr package. Related article: Easy Correlation Matrix Analysis in R Using Corrr Package Contents: Load required R packages Data Compute correlation matrix Create a correlation network Cleaning up the correlation network...

This article describes how to easily compute and explore correlation matrix in R using the corrr package. The corrr package makes it easy to ignore the diagonal, focusing on the correlations of certain variables against others, or reordering and visualizing the correlation matrix. It...

Easy Correlation Matrix Analysis in R Using Corrr Package

This article describes how to easily compute and explore correlation matrix in R using the corrr package. The corrr package makes it easy to ignore the diagonal, focusing on the correlations of certain variables against others, or reordering and visualizing the correlation matrix. It...

This article shows some R histogram examples. Demo data Weight data by sex: set.seed(1234) wdata = data.frame( sex = factor(rep(c("F", "M"), each=200)), weight = c(rnorm(200, 55), rnorm(200, 58)) ) head(wdata, 4) ## sex weight ## 1 F 53.8 ## 2 F 55.3 ## 3...

R Histogram Example Quick Reference

This article shows some R histogram examples. Demo data Weight data by sex: set.seed(1234) wdata = data.frame( sex = factor(rep(c("F", "M"), each=200)), weight = c(rnorm(200, 55), rnorm(200, 58)) ) head(wdata, 4) ## sex weight ## 1 F 53.8 ## 2 F 55.3 ## 3...

Create Icon in R This article describes how to create icon in R with transparent background from a ggplot. Contents: Prerequisites Load ggplot2 and create a helper theme for ggplot icon: library(ggplot2) # Helper theme for ggplot icon theme_icon <- function () { theme_void()...

How to Create Icon in R

Create Icon in R This article describes how to create icon in R with transparent background from a ggplot. Contents: Prerequisites Load ggplot2 and create a helper theme for ggplot icon: library(ggplot2) # Helper theme for ggplot icon theme_icon <- function () { theme_void()...

This article provides a gallery of ggplot examples, including: scatter plot, density plots and histograms, bar and line plots, error bars, box plots, violin plots and more. Contents: Prerequisites Scatter plot Distribution Density plot Histogram QQ Plot Empirical cumulative distribution (ECDF) Density ridgeline plots...

GGPlot Examples Best Reference

This article provides a gallery of ggplot examples, including: scatter plot, density plots and histograms, bar and line plots, error bars, box plots, violin plots and more. Contents: Prerequisites Scatter plot Distribution Density plot Histogram QQ Plot Empirical cumulative distribution (ECDF) Density ridgeline plots...

In this article, you will learn how to map variables in the data to visual properpeties of ggplot geoms (points, bars, box plot, etc). These visual caracteristics are known as aesthetics (or aes) and include: color and fill points shape line type size group...

GGPlot AES: How to Assign Aesthetics in GGPlot2

In this article, you will learn how to map variables in the data to visual properpeties of ggplot geoms (points, bars, box plot, etc). These visual caracteristics are known as aesthetics (or aes) and include: color and fill points shape line type size group...

In this article you will learn how to create a ggplot-like 3D scatter plot using the plotly R package. Contents: Prerequisites Basic 3D Scatter Plot 3D Scatter Plot with Color Scaling Prerequisites Load required R packages library(tidyverse) library(plotly) Data preparation: df <- mtcars %>%...

How to Create a GGPlot-like 3D Scatter Plot using Plotly

In this article you will learn how to create a ggplot-like 3D scatter plot using the plotly R package. Contents: Prerequisites Basic 3D Scatter Plot 3D Scatter Plot with Color Scaling Prerequisites Load required R packages library(tidyverse) library(plotly) Data preparation: df <- mtcars %>%...