data("mtcars")
Case of numeric variables
Create your own function
When you have a grouping variable (factor)
Choose either one of the two cases above and apply it to your data