问题遇到的现象和发生背景
使用ggpubr软件包中ggboxplot报错,图形不对
遇到的现象和发生背景,请写出第一个错误信息
使用ggpubr软件包中ggboxplot报错,图形不对,“time”应该有4个
用代码块功能插入代码,请勿粘贴截图。 不用代码块回答率下降 50%
bxp <- ggboxplot(
ALT, x = "group1", y = "ALT",
color = "time", palette = "jco",facet.by = "group2", short.panel.labs = FALSE
)
bxp
运行结果及详细报错内容
Warning messages:
1: The following aesthetics were dropped during statistical transformation:
colour
ℹ This can happen when ggplot fails to infer the correct grouping structure in
the data.
ℹ Did you forget to specify a group
aesthetic or to convert a numerical
variable into a factor?
2: The following aesthetics were dropped during statistical transformation:
colour
ℹ This can happen when ggplot fails to infer the correct grouping structure in
the data.
ℹ Did you forget to specify a group
aesthetic or to convert a numerical
variable into a factor?
3: The following aesthetics were dropped during statistical transformation:
colour
ℹ This can happen when ggplot fails to infer the correct grouping structure in
the data.
ℹ Did you forget to specify a group
aesthetic or to convert a numerical
variable into a factor?