A scatterplot is a graph in which the values of **two variables** are plotted along two axes, the pattern of the resulting points revealing any **correlation** present.

You can easily add **rug** on X and Y axis, to illustrate the **distribution** of dots.

Note you can as well add marginal plots to show these distributions.

1 2 3 4 5 6 7 8 9 10 11 12 |
# library library(ggplot2) # Iris dataset head(iris) # plot ggplot(data=iris, aes(x=Sepal.Length, Petal.Length)) + geom_point() + geom_rug(col="steelblue",alpha=0.1, size=1.5) |

Not what you are looking for ? Make a new search !

`[mediatagger]`

## Leave a Reply

Be the First to Comment!