# Blog

We provide practical tutorials on data mining, visualization and statistics for decision making. 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... library(ggpubr) # Create a basic plot p <- ggscatter(mtcars, x = "wt", y = "mpg") p # Increase the number of ticks p + scale_x_continuous(breaks = get_breaks(n = 10)) + scale_y_continuous(breaks = get_breaks(n = 10)) # Set ticks according to a specific step, starting...

#### How to Easily Set Axis Ticks Number for Numeric Variables

library(ggpubr) # Create a basic plot p <- ggscatter(mtcars, x = "wt", y = "mpg") p # Increase the number of ticks p + scale_x_continuous(breaks = get_breaks(n = 10)) + scale_y_continuous(breaks = get_breaks(n = 10)) # Set ticks according to a specific step, starting... This article describes how to add p-values generated elsewhere to a ggplot using the ggpubr package. The following key ggpubr functions will be used: stat_pvalue_manual(): Add manually p-values to a ggplot, such as box blots, dot plots and stripcharts. geom_bracket(): Add brackets with...

#### GGPUBR: How to Add P-Values Generated Elsewhere to a GGPLOT

This article describes how to add p-values generated elsewhere to a ggplot using the ggpubr package. The following key ggpubr functions will be used: stat_pvalue_manual(): Add manually p-values to a ggplot, such as box blots, dot plots and stripcharts. geom_bracket(): Add brackets with... This articles describes how to create and customize an interactive heatmap in R using the heatmaply R package, which is based on the ggplot2 and plotly.js engine. Contents: Prerequisites Data preparation Basic heatmap Split rows and columns dendrograms into k groups Change color palettes...

#### How to Create a Beautiful Interactive Heatmap in R

This articles describes how to create and customize an interactive heatmap in R using the heatmaply R package, which is based on the ggplot2 and plotly.js engine. Contents: Prerequisites Data preparation Basic heatmap Split rows and columns dendrograms into k groups Change color palettes... This article describes seriation methods, which consists of finding a suitable linear order for a set of objects in data using loss or merit functions. There are different seriation algorithms. The input data can be either a dissimilarity matrix or a standard data matrix....

#### Seriation in R: How to Optimally Order Objects in a Data Matrice

This article describes seriation methods, which consists of finding a suitable linear order for a set of objects in data using loss or merit functions. There are different seriation algorithms. The input data can be either a dissimilarity matrix or a standard data matrix.... Data normalization methods are used to make variables, measured in different scales, have comparable values. This preprocessing steps is important for clustering and heatmap visualization, principal component analysis and other machine learning algorithms based on distance measures. This article describes the following data rescaling...

#### How to Normalize and Standardize Data in R for Great Heatmap Visualization

Data normalization methods are used to make variables, measured in different scales, have comparable values. This preprocessing steps is important for clustering and heatmap visualization, principal component analysis and other machine learning algorithms based on distance measures. This article describes the following data rescaling... Missing values are generally represented by NA in a data frame. Here, we will describe how to visualize missing data in R using an interactive heatmap. Contents: Prerequisites Show missing values in R Prerequisites Install the heatmaply R package: install.packages("heatmaply"). Show missing values in...

#### How to Visualize Missing Data in R using a Heatmap

Missing values are generally represented by NA in a data frame. Here, we will describe how to visualize missing data in R using an interactive heatmap. Contents: Prerequisites Show missing values in R Prerequisites Install the heatmaply R package: install.packages("heatmaply"). Show missing values in... This articles describes how to create an interactive correlation matrix heatmap in R. You will learn two different approaches: Using the heatmaply R package Using the combination of the ggcorrplot and the plotly R packages. Contents: Prerequisites Data preparation Correlation heatmaps using heatmaply Load...

#### How to Create an Interactive Correlation Matrix Heatmap in R

This articles describes how to create an interactive correlation matrix heatmap in R. You will learn two different approaches: Using the heatmaply R package Using the combination of the ggcorrplot and the plotly R packages. Contents: Prerequisites Data preparation Correlation heatmaps using heatmaply Load...