Scatter plots are a great way to visualize the trend between two quantitative variables. Sometimes, you may have paired quantitative variables and would like to see the how the pairs are related. For example you may have two quantitative variables corresponding to two different … [Read more...] about How To Connect Paired Points with Lines in Scatterplot in ggplot2?
ggplot2
How To Adjust Legend Position in ggplot2?
Legends are useful to add additional variables to a data visualization. By default, when we make a plot with legend using ggplot2, it places the legend on outside the plot on the right side. In this post, we will learn how to change or adjust the legend position in ggplot2. We … [Read more...] about How To Adjust Legend Position in ggplot2?
How To Show Mean Value in Boxplots with ggplot2?
Boxplots are a great way to visualize multiple distributions using summary statistics. Boxplot shows five summary statistics; the minimum, the maximum, the median, and the first and third quartiles of the data. Sometimes, you might want to add other statistical summary values on … [Read more...] about How To Show Mean Value in Boxplots with ggplot2?
How to Connect Data Points on Boxplot with Lines?
Boxplots with data points are great way to visualize the summary information between distributions and also look at the actual data points. Sometimes, when making boxplot with paired data points, it is also useful to connect the paired data points with lines. Adding lines to … [Read more...] about How to Connect Data Points on Boxplot with Lines?
How to Make ECDF Plot with ggplot2 in R?
ECDF plot, a short for Empirical Cumulative Distribution Function Plot, is a great way to visualize one or more distributions. ECDF plot is a great alternative for histograms, as it does not suffer from the need of tuning parameter (bin size in histogram is a tuning parameter) … [Read more...] about How to Make ECDF Plot with ggplot2 in R?