Skip to content

ord_plot fails after CLR if there are only two features/taxa #206

@nr0cinu

Description

@nr0cinu

Hi,

here is a minimal example of the issue:

ibd |> 
  tax_select(c("Firmicutes", "Bacteroidetes", "Proteobacteria")) |>
  tax_transform("clr", rank = "Phylum") |>
  ord_calc() |>  
  ord_plot() 
# works

ibd |> 
  tax_select(c("Firmicutes", "Bacteroidetes")) |>
  tax_transform("clr", rank = "Phylum") |>
  ord_calc() |>  
  ord_plot() 
# Error in ordsum[["sites"]][, axes, drop = FALSE] : 
#  subscript out of bounds

Thanks!

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions