Do you wonder how to save plots in base R and ggplot2 on an HPC (High-Performance Computer)? I also searched the internet for that a few years ago! And as…
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…
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