Scatterplots are great for visualizing relationship between two quantitative variables. However, it suffers from overplotting when the number of data points is large. Another solution is plot the density instead of actjual points. However, sometimes you might want to see the … [Read more...] about ggpointdensity plot: A ggplot extension combining scatter plot with density plot
ggplot2
How To Add Mean Line to Ridgeline Plot in R with ggridges?
In this post, we will learn how to add mean line to ridgeline plot. We can make ridgeline plot in R with ggridges R package developed Claus Wilke. Ridgeline plot is useful when you have multiple distributions or a distribution that changes in distributions over time or space. The … [Read more...] about How To Add Mean Line to Ridgeline Plot in R with ggridges?
How to Add Labels Over Each Bar in Barplot in R?
Adding text annotations over a barplot can be useful in quickly conveying the core message of a plot. In this post, we will see example of how to add text labels or text annotations over each bar in barplot. Barplot is great way to visualize numerical values corresponding to … [Read more...] about How to Add Labels Over Each Bar in Barplot in R?
How To Make Simple Animation in R?
In this post, we will learn to make simple animation in R using gganimate package. gganimate R package is a powerful package to make animation using R. gganimate extends the grammar of graphics as implemented by ggplot2 to include the description of animation. It does this … [Read more...] about How To Make Simple Animation in R?
How To Make Scatter Plot with Regression Line with ggplot2 in R?
Adding regression line to scatter plot can help reveal the relationship or association between the two numerical variables in the scatter plot. With ggplot2, we can add regression line using geom_smooth() function as another layer to scatter plot. In this post, we will see … [Read more...] about How To Make Scatter Plot with Regression Line with ggplot2 in R?