Using ggplot themes on PlotIndiv

Hello! I was testing out the mixomics package.

I’ve customized plotIndiv so that I can change the title text, shapes, colors, etc. However, one thing I don’t like with the lattice package is the font choice: I wanted to know if it’s possible to customize the font size/font itself (like if I wanted to use font_add_google(“Noto Serif”, “noto”)).

This is the code for the plot. I also wanted to edit it so that the shapes are bigger/bolder, as it’s a bit difficult to see. Is there a separate way to customize that? I did not find a good way to change that in the documentation.

base_plot <- plotIndiv(
     final_plsda,
     style = 'lattice',
     group = Y,
     ind.names = FALSE,
     legend = TRUE,
     col = colors,
     title = "Amino Acids PLS-DA",
     X.label = "Component 1 (50%)",
     Y.label = "Component 2 (24%)"
 )

Additionally

  1. Saw that I could change this to only show variables of interest by changing values after the fact in another thread to clean this up
  2. Cannot appear to edit the component_1 and component_2 axis labels for a cleaner look
  3. Is there any support for font customization/shape customization here as well?

I attempted to extract both out with test1 ← base_plot$graph followed by test1 + theme_classic() just as a test, but it didn’t work. As such, I’m not super sure how to use ggplot formatting functions on the results.