In this blog post, we will see how to make Manhattan plots in R with real data. Indeed, we will use the association statistics from an article that reports risk…
In this article, we will see how to use Cytoscape to visualize biological networks. A network is a set of nodes (such as people) connected by edges (such as friendship).…
To sort colors by hue in R, we need to convert the colors from HEX (hexadecimal) to RGB (red-green-blue), compute the hue values and then sort them. Example The I…
To convert colors from the RGB (red-green-blue) to the HCL (hue-chroma-lightness) system in R (or any other software), we need to go through XYZ and CIE-LAB color systems. What is…
In this tutorial, we will see how to convert colors from the RGB (red-green-blue) to the HSL (hue-saturation-lightness), HSV (hue-saturation-value) or HSI (hue-saturation-intensity) systems in R (and vice versa). If…
In this post, we will see how to convert colors from the RGB (red-green-blue) to the HEX (hexadecimal) system in R (and vice versa). For that, we will use base…
In this post, we will see how to use different R color palettes in base R plots such as the barplot function. Color palettes from base R First, we can…
This week, we will see how to connect two points with a straight line in base R and ggplot2. For this, we need to compute the slope and the intercept.…
We will see how to perform exponential regressions and how to plot these curved regression lines in base R and ggplot2, using the lines and geom_line functions, respectively. Please read…
In this tutorial, we will see how to perform a local polynomial regression using the loess function and how to plot curved regression lines in base R and ggplot2. We…
We will see how to perform a linear regression using the lm function and to plot these straigth regression lines in base R and ggplot2, using the lines and geom_abline…
In this article, we will see how to add straight (vertical, horizontal and diagonal) lines to plots in base R and in ggplot2. As an example, we will use the…
Today, we will see how to add significance levels to box plots in R. Data will be processed with the tidyr package, the plot will be made with ggplot2 and…
In this tutorial, we will see how to make bar plots with error bars in R using the ggplot2 package. For that, we will go through two examples using the…
Today, we will see how to create and label dendrograms in R with base R functions. How to make dendrograms First, we will make a dendrogram on the same data…
In this tutorial, we will see how to create and rotate 4 types of heatmaps in R with the ggplot2 package. In heatmaps, the diagonal line is always 1, which…
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok