For the plotPairPCA function, when plotting with multiple attributes (e.g. shape and color) the figure legend along the top can extend past the plot limits and is difficult to read. Since the common figure legend is set by a call to ggpubr::ggarrange, there doesn't seem to be a straightforward way to modify the figure legend location after the plot is generated.
I have made a pull request to alter the pairedPCA plotting function to add an argument for allow the figure legend location to be specified in the function, with a default value of "top". I tested the modified code locally to ensure it had the expected functionality.
For the
plotPairPCA
function, when plotting with multiple attributes (e.g. shape and color) the figure legend along the top can extend past the plot limits and is difficult to read. Since the common figure legend is set by a call toggpubr::ggarrange
, there doesn't seem to be a straightforward way to modify the figure legend location after the plot is generated.I have made a pull request to alter the pairedPCA plotting function to add an argument for allow the figure legend location to be specified in the function, with a default value of "top". I tested the modified code locally to ensure it had the expected functionality.