I’m trying to reproduce a PCA biplot where dots = samples coloured by the column sample in pb.obs, and arrows = genes, pointing toward the region(s) of the plot where each gene is most highly expressed. The data is in pd.X So - if a gene is associated with a certain sample, on the PCA plot the direction of the arrow would be towards that sample. If a gene is high in two samples I expect the arrow to end up between the two samples clouds; if it’s high in three models the arrow should shift accordingly.. and so on. How can I do that in python ? Example photo I took from google, shows beautifully what I need : Continue reading...