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
? Please note that the data frame does not have a column named count
.
library(ggplot2)
ggplot(data_frame, aes(x = class.1_value)) +
geom_bar(color ="steelblue") +
theme_minimal()
使用fill ="steelblue"
而不是color ="steelblue"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.