我正在尝试将 X.axis 刻度颜色的颜色更改为黑色,如下所述:
https
://github.com/hadley/ggplot2/wiki/Axis-Attributes#axistextx-text
但是当我运行我的代码时,我'收到错误消息:
Error: could not find function "theme"
ggplot(long.repmixed.df, aes(x = log10intensity, colour = channel, fill = channel)) +
geom_bar(position="dodge") +
theme(axis.text.x = element_text(colour = "black")) +
opts(panel.background = theme_rect(fill = 'white', colour = 'black')) +
opts(panel.grid.major = none, panel.grid.minor = none)
我基本上是在尝试绘制一个没有网格和白色 BG 的直方图。任何人都可以纠正这个问题。