Skip to content

PlotCharacter() yields an error when the tree is a strict consensus and the character is invariant #182

@HS6986

Description

@HS6986

Dear Professor Smith,

I'm trying to reconstruct ancestral states for a strict consensus tree using TreeSearch::PlotCharacter() with this version of TreeSearch. The issue occurred when the character to be plotted was invariant, producing the following error.

Error in nodeStyle["col", , drop = FALSE] : 
  incorrect number of dimensions

This error also occurs when the character consists only of a single state and $?$. When the tree used is a most parsimonious tree, this error does not seem to occur.

I would greatly appreciate it if you could review this issue and fix it.

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