KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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", "#AA3929", "#E25033", "#F27314", "#F8A31B", "#E2C59F", "#B6C5CC", "#8E9CA3", "#556670", "#000000") But when I try to pass it to nothing happened ggplot(mydata, aes(factor(phone_partner_products)), color = rhg_cols) + geom_bar()
Tags (comma-separated)
Save Edits
Cancel