# How to easily make ggplot2 type of scatterplot, ezplot - Part 7

## Master R

When you have two continuous variables and want to see their relationship, you’d draw a scatterplot by putting one variable on the x-axis and the other variable on the y-axis. In this post, we’ll look at how to draw scatterplots using the mk_scatterplot() function from the ezplot package. We’ll also use the scale_axis() function, which allows us to easily change the scale of the x-axis or y-axis. Let’s get started.

#### Prerequisites

1. Install a set of development tools
• On Mac, install the Xcode command line tools.
• On Linux, install the R development package, usually called r-devel or r-base-dev.
2. Install devtools by running install.packages("devtools") in R.

Note we also changed the transparency and size of the points by passing values to the pt_alpha and pt_size arguments. And we added a regression line by setting add_line=T and gave it a narrower width by setting linew=0.8.
See how easy it is? All we need is to pass the name of the grouping variable, “made_money”, to the fillby argument.