Is it possible to have two different types of marginal distribution in ggMarginal()? E.g., density for x and histogram for y?
library(ggExtra)
p <- ggplot(mtcars, aes(wt, mpg)) + geom_point()
# Histogram for both x and y
ggMarginal(p, type = "histogram")
# Density for x
ggMarginal(p, type = "density", margins = "x")
# Histogram for y
ggMarginal(p, type = "histogram", margins = "y")
Basically, I would like the two marginal distributions shown below on the same plot.

I tried having both types in a list (
ggMarginal(p, type = list("density", "histogram"))), but that type must be of length 1.
Thanks in advance for your help!
