microeco
microeco copied to clipboard
Can't find function trans_ordination
Hello,
I'm using microeco version 1.6.0 with R version 4.2.0 to do RDA and dbRDA analysis, but I get an error for trans_ordination:
t1$trans_ordination(adjust_arrow_length = TRUE, max_perc_env = 1.5) Error: attempt to apply non-function
I also checked for the availability of the function but cannot find it.
ls("package:microeco") [1] "clone" "dataset" [3] "dropallfactors" "env_data_16S" [5] "fungi_func_FungalTraits" "fungi_func_FUNGuild" [7] "microtable" "otu_table_16S" [9] "otu_table_ITS" "phylo_tree_16S" [11] "prok_func_FAPROTAX" "prok_func_NJC19_list" [13] "sample_info_16S" "sample_info_ITS" [15] "Tax4Fun2_KEGG" "taxonomy_table_16S" [17] "taxonomy_table_ITS" "tidy_taxonomy" [19] "trans_abund" "trans_alpha" [21] "trans_beta" "trans_classifier" [23] "trans_diff" "trans_env" [25] "trans_func" "trans_network" [27] "trans_norm" "trans_nullmodel" [29] "trans_venn"
I'm very confused about it. Is it my installation. However, I did not have any problem with that.
Thank you very much for your help.
Hi. How is your t1
object created? Please attach an example with the data in the package. The error message shows there is no trans_ordination function in it. For the help document, please run ?trans_env
Thank you very much for your help. Indeed, my t1 object wasn't created properly. Is there a limited number of metadata that can be used here? I ran into an error when I tried to use more than 60 metadata for the cal_ordination function.
I guess the error comes from the dependent function of vegan package. Although there is no number limitation there, it is better to select some important variables.