Skip to content

Preserve order of categorical groups #61

@ernohanninen

Description

@ernohanninen

Hi! Thanks for the great package. I was wondering if it's possible to modify the biplot so that the order of categories in df_subset.treatment is preserved in the legend. Currently, I'm unable to assign the colors to my groups as I'd like. Additionally, in the PCA plot, the groups seem to overlap quite a bit. This is partly because the groups are plotted on top of each other. It would be great if the groups could be more mixed together to improve visualization. Shuffling my dataframe before passing it in to the pca didn't help with this.

model.biplot( labels=df_subset.treatment, title='', )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions