Blog

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

Version: Français

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...

This article describes how to easily create barplots with error bars in R using the ggpubr package, an extension of ggplot2 for creating publication ready plots. The following R code produces barplots showing means +/- sd and the jittered data points for each group....

How to Easily Create Barplots with Error Bars in R

This article describes how to easily create barplots with error bars in R using the ggpubr package, an extension of ggplot2 for creating publication ready plots. The following R code produces barplots showing means +/- sd and the jittered data points for each group....

This article describes how add space between the labels, on the top of the chart (bar plot, box plot, etc), and the plot border when using the ggplot2 facet functions (facet_wrap() and facet_grid()). In the demo example, we’ll create a publication ready plot with...

GGPLOT Facet: How to Add Space Between Labels on the Top of the Chart and the Plot Border

This article describes how add space between the labels, on the top of the chart (bar plot, box plot, etc), and the plot border when using the ggplot2 facet functions (facet_wrap() and facet_grid()). In the demo example, we’ll create a publication ready plot with...