Hi
I came across a figure attached herewith and want to try the plotting style. But I can't get the grasp of what units are plotted as marginal distribution on X and Y. I have PCA plot and PC loadings, but how to plot them as this marginal distribution? Can someone explain? For the clarity colour codings in blue, cyan green and yellow are different samples and control, CS are treatment groups
hi thank you for the response. i tried it but the histograms do not have metadata information like group type and sample type. how do i add that
below is the code that i am using..
Here's some reproducible code to show the input data:
Then, an initial ggMarginal plot would me something like this:
If you want to have different marginal distributions on both axes, you can do a solution such as proposed here (there may be other solutions for this):