Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/78.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覆盖图例中的符号以仅显示直线_R_Ggplot2 - Fatal编程技术网

R ggplot覆盖图例中的符号以仅显示直线

R ggplot覆盖图例中的符号以仅显示直线,r,ggplot2,R,Ggplot2,我只想在我的图例中显示线条(而不是十字) example.dat向您不需要图例的geom添加show.legend=FALSE,例如: geom_linerange(aes(ymin = -(plogis(lower)-0.5), ymax = - (plogis(upper)-0.5)), position = position_dodge(0.02), size = 1, show.legend

我只想在我的图例中显示线条(而不是十字)


example.dat向您不需要图例的
geom
添加
show.legend=FALSE
,例如:

geom_linerange(aes(ymin = -(plogis(lower)-0.5), ymax = - (plogis(upper)-0.5)), 
               position = position_dodge(0.02), 
               size = 1, 
               show.legend = FALSE)
geom_linerange(aes(ymin = -(plogis(lower)-0.5), ymax = - (plogis(upper)-0.5)), 
               position = position_dodge(0.02), 
               size = 1, 
               show.legend = FALSE)