Closed scilexenko closed 2 months ago
Hi Ivan
Without digging into the code, I would guess that taxatree_models probably doesn't sensibly handle factors with more than 2 levels, because I designed it to feed into the taxatree plots. These plots don't really make sense for nominal categorical variables.
You could try converting your factor into 3 dummy variables. This would at least give you directions for associations. But overall, it might not be possible to use (only) taxatree models to achieve your aims.
best David
Hi David,
I hope you’re doing well!
I’m encountering an issue with my data, which consists of four levels. I’m trying to change the comparison level to generate different heat trees. I attempted to relevel the factor within my phyloseq object using the following code:
However, this doesn’t seem to work as expected when using taxatree_models. Would you be able to help me with this? I would greatly appreciate any guidance you can provide.
Thank you so much in advance! Best regards, Ivan