Open tyronechen opened 1 year ago
Hi,
thanks for the amazing work! This would be great with any plot function of Mixomics.
For instance if I want to ggplotify the network I can store its data in a variable but can cause some issues with graphic state if working in Rmarkdown with graphical display in line. A direct access to the data used for your plot methods would be great! Thanks again!
Is your feature request related to a problem? Please describe.
Aim is to export a table of all loading values from
plotLoadings
without plotting the associated bar graph. This was possible in an earlier version of mixOmics6.17.3
. Version tested is6.23.4
.Describe the solution you'd like
I would like to skip the plot generation when exporting all loadings. This is computationally expensive with a lot of features.
Describe alternatives you've considered
A workaround exists, it is possible to generate the plot as normal, with
plot=TRUE
(see below) and then catch the output in a variable. However in the case of many features (>10000) it slows down and generates very big plots.Additional context
Code below best shows the event. Minimum reproducible example based on the Koren case study. mixOmics
6.23.4
.Plot everything correctly:
This errors out. I traced this back to a line in
plotLoadings
. Here is one sample forplotLoadings.mixo_plsda
(others have this too):I note that this worked in mixOmics
6.17.3
: