我正在使用ggbarplot(
mtcars, x = "am", y = "mpg",
add = "mean_sd",fill = "black",
xlab = "AM",
ylab="Fuel consumption (Miles/ Gallon)"
) +
stat_compare_means(
comparisons = list(c("0", "1")),
label = "p.signif"
) + scale_x_discrete(labels= c(0,1))
数据集运行Barplot,其中添加了关于
小组比较。使用下面的代码,我得到与**的统计比较
ggbarplot(
mtcars, x = "am", y = "mpg",
add = "mean_sd",fill = "black",
xlab = "AM",
ylab="Fuel consumption (Miles/ Gallon)",ylim=c(0,30)
) +
stat_compare_means(
comparisons = list(c("0", "1")),
label = "p.signif"
) + scale_x_discrete(labels= c(0,1))
但是,我要调整ylim。当我在下面运行代码时,统计比较会丢失(我想已移出了视图)。 无论如何,是否需要调整ylim并保持统计数据
select stuff(col, charindex('intnet', col), 0, '_')