Morgane B. Gillard Author Answered Nov 2, 2021
Department of Botany and Plant Sciences, University of California, Riverside, California
Dear Francisca,
This error often come from the dataset or how the variables are used depending on their characteristics. Here Fold_enrichment, Gene_number and |log10(FDR)| must be numeric, and GO_biological_process must be classified as character. You can check this for your dataframe by using L23 of the script, that will indicate the variable status right after the variable name (it can be indicated "num", "Factor", "int" or "chr" for example). If they are not as indicated previously, you can then use L26 to transform variables that need to be numeric, or L29 for those that need to be as character.
We also suggest removing the last two lines of your code (the guides() function), as recommended in previous comments below.
If these suggestions does not help to fix your issue, you can send me your script and dataset at morgane.gillard35@gmail.com.
Thanks,
Morgane