cafferychen777 / ggpicrust2

Make Picrust2 Output Analysis and Visualization Easier
https://cafferychen777.github.io/ggpicrust2/
MIT License
102 stars 11 forks source link

Error in `ggplot_add()` #5

Closed luozhy88 closed 1 year ago

luozhy88 commented 1 year ago

why?

image
luozhy88 commented 1 year ago

my R version 4.2.3

cafferychen777 commented 1 year ago

I think you forgot to set p_values_bar = TRUE. Maybe when you encounter difficulties, you should firstly check the file. The CRAN file is the necessary thing for R learner

cafferychen777 commented 1 year ago

Hello @luozhy88 ,

If you're still having problems, I suggest you run each individual function to solve the problem.

Best regards

cafferychen777 commented 1 year ago

I ran the code same as you just now and did't find any problem.

截屏2023-04-03 00 26 30
luozhy88 commented 1 year ago

Error in h(simpleError(msg, call)) : error in evaluating the argument 'physeq' in selecting a method for function 'taxa_are_rows': invalid class “otu_table” object: OTU abundance data must have non-zero dimensions.

image
luozhy88 commented 1 year ago
image
luozhy88 commented 1 year ago

I think you can update you git

cafferychen777 commented 1 year ago

ggpicrust2() and pathway_errorbar() use different select parameter, you can check it in ggpicrust2() function. The select you use in ggpicrust2 won't be transfered to pathway_errorbar().

截屏2023-04-03 21 47 41
luozhy88 commented 1 year ago
image
luozhy88 commented 1 year ago
image
cafferychen777 commented 1 year ago

Please set select= NULL, because there are less than 30 statistically significant pathway in sample data.

发送自 Outlook for iOShttps://aka.ms/o0ukef


发件人: luozhy88 @.> 发送时间: Monday, April 3, 2023 11:07:28 PM 收件人: cafferychen777/ggpicrust2 @.> 抄送: Caffery Yang @.>; Comment @.> 主题: Re: [cafferychen777/ggpicrust2] Error in ggplot_add() (Issue #5)

[image]https://user-images.githubusercontent.com/94740863/229550833-7bb71a35-344d-4d6c-9a84-f36462e5136b.png

― Reply to this email directly, view it on GitHubhttps://github.com/cafferychen777/ggpicrust2/issues/5#issuecomment-1494502108, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATZEQTS3LFC2N44TRQTERULW7LRTBANCNFSM6AAAAAAWQBE6AI. You are receiving this because you commented.Message ID: @.***>

luozhy88 commented 1 year ago

it works! but it no show barplot.why?

image
luozhy88 commented 1 year ago
image
cafferychen777 commented 1 year ago

I guess I know the Error in ggplot_add(): ! Can't add e2 to a object. problem.

Please

library(patchwork)