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
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