R ggplot中的Modiffy轴
我根据以前的文章使用了下面的代码来生成下面的图。我想: 1) 将x轴和y轴以及图例设置为粗体 2) 增加线条的厚度 在ggplot中我怎么做R ggplot中的Modiffy轴,r,ggplot2,R,Ggplot2,我根据以前的文章使用了下面的代码来生成下面的图。我想: 1) 将x轴和y轴以及图例设置为粗体 2) 增加线条的厚度 在ggplot中我怎么做 ggplot(alln, aes(x = apoll2, y = increase, ymin = l95, ymax = u95)) + geom_pointrange(aes(col = factor(marker)), position=position_dodge(width=0.50)) + ylab("Percent increase
ggplot(alln, aes(x = apoll2, y = increase, ymin = l95, ymax = u95)) + geom_pointrange(aes(col = factor(marker)), position=position_dodge(width=0.50)) +
ylab("Percent increase & 95% CI") + geom_hline(aes(yintercept = 0)) + scale_color_discrete(name = "Marker") + xlab("")
要更改轴和图例的外观,应将
主题()
添加到绘图中
+ theme(axis.text=element_text(face="bold"),
legend.text=element_text(face="bold"))
要使行更宽,请在geom_pointrange()
调用中添加size=1.5