scatterplot with histogram next to the axis
I came across this earlier post where using fit Y by X was suggested to plot histograms besides the axes for a scatter plot. This has multiple drawbacks however, taking the iris.jmp datatable as an example - you cannot show split the histogram per group (species column) - you cannot switch the histogram to kernel density a much nicer visualization is possible in ggplot2. Can below visualization...