LebeerLab / tidytacos

Functions to manipulate and visualize microbial community data
https://lebeerlab.github.io/tidytacos/
GNU General Public License v3.0
9 stars 1 forks source link

Tacoplot_stack shows only one sample #6

Closed wsmets closed 1 year ago

wsmets commented 1 year ago

When I use tacoplot_stack(ta), it shows the bar of only one sample called "NA", possibly all samples together? Tacoplot_stack(ta, x=sample) gives the following error: `Error ingeom_bar(): ! Problem while computing aesthetics. ℹ Error occurred in the 1st layer. Caused by error inlvls_reorder(): !idxmust contain one integer for each level off` Backtrace:

  1. base (local) <fn>(x)
    1. forcats::fct_reorder(sample_name, as.integer(sample_clustered))
    2. forcats::lvls_reorder(f, order(summary, decreasing = .desc)) Error in geom_bar(stat = "identity") : ℹ Error occurred in the 1st layer. Caused by error in lvls_reorder(): ! idx must contain one integer for each level of `f```

the plotly version also doesn't work

wsmets commented 1 year ago

The tidytacos object did not have a sample column in the samples table.