[英]geom_bar change color in R
I created a bar plot
via ggplot2
in R
using the code below, how can I change the inside color of the bars when only one
column is being used in aes
?我使用下面的代码通过
R
中的ggplot2
创建了一个bar plot
,当aes
只使用one
列时,如何更改条形的内部颜色? Please note that the data frame does not have a column named count
.请注意,数据框没有名为
count
的列。
library(ggplot2)
ggplot(data_frame, aes(x = class.1_value)) +
geom_bar(color ="steelblue") +
theme_minimal()
使用fill ="steelblue"
而不是color ="steelblue"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.