问题描述
这个示例代码给了我我想要的一切,除了颜色条标签。
require(ggplot2)
require(RColorBrewer)
df <- faithfuld
pbase <- ggplot(data=df,aes(x=waiting,y=eruptions))
p1 <- pbase + geom_contour_filled(aes(z=100*density),show.legend=T) +
scale_fill_manual(values=brewer.pal(11,"Spectral"),guide = guide_colorsteps(direction="horizontal",title.position="top",title="Density*100.")) +
theme(legend.position="top")
我想要的不是默认标签,而是位于条形终点的标签。我曾尝试使用指南中的“draw.ulim”和“draw.llim”参数,但它们似乎没有效果。我搜索过类似的帖子,但没有找到这个问题的答案。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)