I'm trying to add ellipses after plotting PCA with two colored groups. I've used this line to generate the PCA:
DEGsT_PCA <- plotPCA((vsd)[DEGsT_ind, samples_for_mat], intgroup ="condition")
And now I'd like to add ellipses around the two groups of the "condition". When I treat "DEGsT_PCA" as a ggplot component and add:
DEGsT_PCA + stat_ellipse()
I get the following warning:
Warning message: Computation failed in
stat_ellipse(): could not find function "mat2df"
Does anyone have a solution for this?