79657752

Date: 2025-06-08 10:45:29
Score: 1.5
Natty:
Report link

I finally found the function within the ggpubr package.

Its called ggscatterhist and does the trick:

https://rpkgs.datanovia.com/ggpubr/reference/ggscatterhist.html

Scatter Plot with Marginal Histograms

Basic scatter plot with marginal density plot

ggscatterhist(iris, x = "Sepal.Length", y = "Sepal.Width", color = "#00AFBB", margin.params = list(fill = "lightgray"))

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Antony