Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R ggplot中的Modiffy轴_R_Ggplot2 - Fatal编程技术网

R ggplot中的Modiffy轴

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

我根据以前的文章使用了下面的代码来生成下面的图。我想: 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 & 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()
调用中添加s
ize=1.5