Hello all,
I'm trying to follow the tutorial cited and I ran the first steps but I'm having problems running the command:
gplots::venn(list(metadata=metadata$SampleID, shannon=shannon$SampleID)) with the error:
Error in metadata$SampleID : object of type 'closure' is not subsettable
and the command:
metadata %>%
- filter(!is.na(shannon)) %>%
- ggplot(aes(x=
TIME
, y=shannon, color=SAMPLES
)) + - stat_summary(geom="errorbar", fun.data=mean_se, width=0) +
- stat_summary(geom="line", fun.data=mean_se) +
- stat_summary(geom="point", fun.data=mean_se) +
- xlab("TIME") +
- ylab("Shannon Diversity") +
- theme_q2r() +
- scale_color_viridis_d(name="TIME")
with the error Error in UseMethod("filter") :
no applicable method for 'filter' applied to an object of class "c('standardGeneric', 'genericFunction', 'function', 'OptionalFunction', 'PossibleMethod', 'expression_OR_function', 'optionalMethod')"
I'm not an expert in R, can anyone help me to fix that script?
Thank you!