Does anyone know how to use a pre-defined color palette in ggplot?
I have a vector of colors I would like to use:
rhg_cols <- c(\"#771C19\", \"#AA
First add, the colours to your data set:
mydata$col <- rhg_cols
Then map colour to that column and use scale_colour_identity
scale_colour_identity
ggplot(mydata, aes(factor(phone_partner_products, colour = col))) + geom_bar() + scale_colour_identity()