Skip to content

Plotting of categorical trait names #3

@eshdb

Description

@eshdb

When including categorical traits in RLQ, plotting the trait scores does not show the individual trait categories as labels, only the traits they belong to. This can be solved by using the rownames of the trait scores as labels rather than the column names of the trait table:

# Old code
dotchart(rlqF$c1[t1,1], pch=16, 
         labels = names(trait)[t1])
abline(v=0, lty=2)

# Suggested code
dotchart(rlqF$c1[t1,1], pch=16, 
         labels = rownames(rlqF$c1)[t1])
abline(v=0, lty=2)

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