Skip to content

Error in taxa_barplots.R  #1

@Cristina-Turcu

Description

@Cristina-Turcu

Hi Vera,

In the taxa_barplots.R code on line 42 I suggest adding as.factor() before levels() to rank2glommed.relA.df$Rank2, as levels() requires factor as the input, otherwise I get an error when I use the palette in the plot (For example: "Error in palette():
! Insufficient values in manual scale. 7 needed but only 3 provided.")

Like this: myPalette = c(brewer.pal(length(levels(as.factor(rank2glommed.relA.df$Rank2))), "Paired”))

Best,
Cristina

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