I'd like to use the darker colors in the "Oranges" palette in RColorBrewer to use in my ggplot (bargraph). I however am unable to. Help. Below is the sample code:
my_palette = brewer.pal(n = 9, "Oranges")[4:9]
### Bar Plots ###
ggplot(Sample_df, aes(x = Sample_Score), fill = Sample_Score) +
geom_bar(stat = "count", width = 0.8) + scale_fill_brewer(palette= my_palette) + scale_y_log10(labels = comma) +
labs(title="Distribution of customers according to Sample Score",x="Sample Score", y="Number of Customers") +
theme(plot.title = element_text(face = "bold", size = 10),
axis.title.x = element_text(face = "bold", size = 8),
axis.title.y = element_text(face = "bold", size = 8), legend.position="none")