Blog

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

Version: Français

This article provides multiple solutions to create an elegant Venn diagram with R or RStudio. The following R packages will be illustrated: ggvenn, ggVenDiagram, VennDiagram and the gplots packages. Contents: Create a demo data Using the ggvenn R package Using the ggVennDiagram R package...

Venn Diagram with R or RStudio: A Million Ways

This article provides multiple solutions to create an elegant Venn diagram with R or RStudio. The following R packages will be illustrated: ggvenn, ggVenDiagram, VennDiagram and the gplots packages. Contents: Create a demo data Using the ggvenn R package Using the ggVennDiagram R package...

Introduction This article describes how to create a beautiful ggplot Venn diagram. There are multiple extensions of the ggplot2 R package for creating Venn diagram in R, including the ggvenn and the ggVennDiagram packages. The two packages enable to create Venn plots with 2...

Beautiful GGPlot Venn Diagram with R

Introduction This article describes how to create a beautiful ggplot Venn diagram. There are multiple extensions of the ggplot2 R package for creating Venn diagram in R, including the ggvenn and the ggVennDiagram packages. The two packages enable to create Venn plots with 2...

This article describes how to compute and automatically add p-values onto ggplot facets with different scales using the ggpubr and the rstatix R packages. For multipanel plots with approximately similar y-axis scales on each panel, you can follow steps described in this article: How...

Add P-values to GGPLOT Facets with Different Scales

This article describes how to compute and automatically add p-values onto ggplot facets with different scales using the ggpubr and the rstatix R packages. For multipanel plots with approximately similar y-axis scales on each panel, you can follow steps described in this article: How...

In this article, you will learn how to easily create a ggplot histogram with density curve in R using a secondary y-axis. We’ll use the ggpubr package to create the plots and the cowplot package to align the graphs. Contents: Prerequisites Data preparation Create...

GGPLOT Histogram with Density Curve in R using Secondary Y-axis

In this article, you will learn how to easily create a ggplot histogram with density curve in R using a secondary y-axis. We’ll use the ggpubr package to create the plots and the cowplot package to align the graphs. Contents: Prerequisites Data preparation Create...

This article describes how to add p-values onto horizontal ggplots using the R function stat_pvalue_manual() available in the ggpubr R package. Horizontal plots can be created using the function coord_flip() . When adding the p-values to a horizontal ggplot, you need to...

How to Add P-Values onto Horizontal GGPLOTS

This article describes how to add p-values onto horizontal ggplots using the R function stat_pvalue_manual() available in the ggpubr R package. Horizontal plots can be created using the function coord_flip() . When adding the p-values to a horizontal ggplot, you need to...

This article provides examples of codes for K-means clustering visualization in R using the factoextra and the ggpubr R packages. You can learn more about the k-means algorithm by reading the following blog post: K-means clustering in R: Step by Step Practical Guide. Contents:...

K-Means Clustering Visualization in R: Step By Step Guide

This article provides examples of codes for K-means clustering visualization in R using the factoextra and the ggpubr R packages. You can learn more about the k-means algorithm by reading the following blog post: K-means clustering in R: Step by Step Practical Guide. Contents:...

This article describes the basics of how to compute and add p-values to basic ggplots using the rstatix and the ggpubr R packages. You will learn how to: Perform pairwise mean comparisons and add the p-values onto basic box plots and bar plots. Display...

How to Add P-Values onto Basic GGPLOTS

This article describes the basics of how to compute and add p-values to basic ggplots using the rstatix and the ggpubr R packages. You will learn how to: Perform pairwise mean comparisons and add the p-values onto basic box plots and bar plots. Display...

This article describes how to compute and automatically add p-values onto ggplot facets using the ggpubr and the rstatix R packages. You will learn how to: Add p-values to a multipanel facet plots containing two or more groups by panel. Examples are shown for...

How to Add P-values to GGPLOT Facets

This article describes how to compute and automatically add p-values onto ggplot facets using the ggpubr and the rstatix R packages. You will learn how to: Add p-values to a multipanel facet plots containing two or more groups by panel. Examples are shown for...

This article describes how to display the last value of each line as a label using the ggplot2 R package. Different solutions are provided using either the ggrepel text labeling or the ggplot2 secondary axis functions. Contents: Prerequisites Using ggrepel to add labels to...

GGPLOT: How to Display the Last Value of Each Line as Label

This article describes how to display the last value of each line as a label using the ggplot2 R package. Different solutions are provided using either the ggrepel text labeling or the ggplot2 secondary axis functions. Contents: Prerequisites Using ggrepel to add labels to...

This article describes how to compute and automatically add p-values onto grouped ggplots using the ggpubr and the rstatix R packages. You will learn how to: Add p-values onto grouped box plots, bar plots and line plots. Examples, containing two and three groups by...

How to Add P-Values onto a Grouped GGPLOT using the GGPUBR R Package

This article describes how to compute and automatically add p-values onto grouped ggplots using the ggpubr and the rstatix R packages. You will learn how to: Add p-values onto grouped box plots, bar plots and line plots. Examples, containing two and three groups by...