Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems plotting functions in amp_heatmap when aggregating on species-level #164

Open
SofieZacho opened this issue Dec 13, 2023 · 0 comments

Comments

@SofieZacho
Copy link

I have troubles plotting functions in amp_heatmap when setting tax_aggregate = 'Species' as shown in example below:

amp_heatmap(data,
            group_by = 'SampleSite',
            normalise = F,
            tax_aggregate = 'Species',
            tax_add = c("Genus"),
            tax_empty = 'remove',
            plot_functions = T)

I am getting the following error:

Error in `levels<-`(`*tmp*`, value = as.character(levels)) : 
  factor level [18] is duplicated

It is working completely fine when using tax_aggregate = 'Genus'. I can also make a text map (textmap=T) and get the function information when aggregating at species-level.

Thanks, Kasper!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant