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.

It is sometimes important to check the distribution of variables of the X and Y axis. This can be done by adding marginal plots. The ggExtra library allows to do it easily thanks to Dean Attali.

Note that you can custom the size of the marginal width, their features, and show it only for one axis.


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

[mediatagger]

 


Leave a Reply

Be the First to Comment!

avatar
  Subscribe  
Notify of