Mastering Scatterplot Customization in R with ggplot

Scatterplot using ggplot2 in R

Indhumathy Chelliah
5 min readMay 24, 2023
Photo by Nataliya Vaitkevich:

Scatterplots are powerful tools for visualizing the relationship between two continuous variables. They allow us to observe patterns, trends, and outliers in our data. While the default scatterplot settings in R’s ggplot package are useful, customizing the plot can elevate its impact and make it more visually appealing.

In this blog post, we will look how to do scatterplot customization using ggplot in R. We will look at how to adjust the point size, change colors, or add labels, set axis range and tick labels, set the title and axis labels.

So, let’s dive into the world of scatterplot customization and unlock the full potential of your data visualizations in R.

Topics Covered:

  1. How to plot scatter plot with ggplot2
  2. How to set the axis range
  3. How to set the axis ticks
  4. How to set the axis labels
  5. How to increase the size of point
  6. How to set the title and align it
  7. How to change the background color
  8. How to draw vertical line and horizontal line
  9. How to customize plot title, plot axis label, axis…