I'd like to add marginal distributions of the X and Y variables to a scatterplot. Here's a beautiful example from Nosek et al (2015), who drew it in R.
Is there a way to get a similar sort of graph in Stata? I don't need to do everything Nosek et al did, but I would like some visualization of the marginal distribution (a histogram, rugplot, violinplot, or kernel density plot).
I did find -binscatterhist-, which I like, but I think it bins the scattered points, which I don't want to do.
Is there a way to get a similar sort of graph in Stata? I don't need to do everything Nosek et al did, but I would like some visualization of the marginal distribution (a histogram, rugplot, violinplot, or kernel density plot).
I did find -binscatterhist-, which I like, but I think it bins the scattered points, which I don't want to do.

Comment