Ed_Gravy
Ed_Gravy

Reputation: 2033

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? 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()

enter image description here

Upvotes: 1

Views: 200

Answers (1)

Jilber Urbina
Jilber Urbina

Reputation: 61214

Use fill ="steelblue" instead of color ="steelblue"

Upvotes: 2

Related Questions