Possible to make a scatter plot with margin histograms?

I’ve been trying to find some examples of this using plotly, but no luck so far. Would this be possible to do either using python, R or the JS plotly libraries?

Yes. Here’s an example https://plot.ly/~PlotBot/95.embed

JS code: https://plot.ly/~PlotBot/95.js