ggplot(data,aes(G, value, fill = G))+ coord_cartesian(expand = F, xlim = c(.2, 6.55), ylim = c(0, 180))+ scale_y_continuous(breaks = seq(0, 180, 20))+ stat_summary(geom = "errorbar",fun.data = 'mean_sd', width = 0.4, linewidth = .1)+ stat_summary(aes(pattern = G, pattern_angle = G),pattern_spacing = .1, fun = "mean", position = "dodge", size = 0.5, geom = "bar_pattern", colour = 'black', width = 0.75, fill = 'white', linewidth = .1)

要让 'bar_pattern' 图形的线条变细,只需将 'size' 参数的值增加即可。例如,将 'size' 参数的值从 0.1 改为 0.5,就能明显看到线条变粗了。

通过调整 'size' 参数,您可以根据需要控制 'bar_pattern' 图形的线条粗细,使您的图形更加清晰易懂。

ggplot2 中如何调整 bar_pattern 图形的线条粗细

原文地址: https://www.cveoy.top/t/topic/ndnu 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录