Hi, I actually fixed this error, but forgo to delete my question. I do have another question, and although I’ve spend 2 hours trying to figure it out, I cannot.
When I try to recreate the alpha diversity in R, I get this error
Error: Aesthetics must either be length one, or the same length as the data
This is my code:
#PLOTTING ALPHA DIVERSITY
mutate(TimeSinceFire=as.numeric(TimeSinceFire)) %>% #coerce this to be stored as number
ggplot(aes(x=TimeSinceFire, y=obsOTU, group=Treatment, color=Site, shape=Unit)) +
facet_grid(Site~Treatment) + #plot body sites across rows and subjects across columns
xlab(“TimeSinceFire (years)”) +
ylab(“Observed OTU’s”) +
ggtitle(“Observed OTU’s across time”)
I am mimicing what you have done, just to see if I undestand, but I am stuck.
If you could please help me out that would be great, and if you have any other tutorials, please let me know. I am currently trying to create a PCA, but I am unsure how to do with qiime outputs.