About 2,190,000 results
Open links in new tab
  1. r - Manually setting group colors for ggplot2 - Stack Overflow

    Manually setting group colors for ggplot2 Asked 12 years, 6 months ago Modified 10 months ago Viewed 128k times

  2. How to assign colors to categorical variables in ggplot2 that have ...

    What is a good way to assign colors to categorical variables in ggplot2 that have stable mapping? I need consistent colors across a set of graphs that have different subsets and different number of …

  3. r - Understanding color scales in ggplot2 - Stack Overflow

    Feb 1, 2022 · There are so many ways to define colour scales within ggplot2. After just loading ggplot2 I count 22 functions beginging with scale_color_* (or scale_colour_*) and same number beginging …

  4. Change the default colour palette in ggplot - Stack Overflow

    17 days ago (2020-05-19) work by Carson Sievert has been merged into the development version of ggplot2 that allow to specify the default discrete color palette (s) with an option (ggplot2.discrete.fill & …

  5. ggplot2 - R ggplot: colour and fill arguments - Stack Overflow

    Dec 24, 2022 · I am new in R and just started to learn ggplot. I am so confused by the syntax, I thought the "color" and "fill" arguments should always follow color names or RGB specifications.

  6. r - Emulate ggplot2 default color palette - Stack Overflow

    Nov 19, 2011 · What function can I use to emulate ggplot2's default color palette for a desired number of colors. For example, an input of 3 would produce a character vector of HEX colors with these colors:

  7. Using a pre-defined color palette in ggplot - Stack Overflow

    44 Does anyone know how to use a pre-defined color palette in ggplot? I have a vector of colors I would like to use:

  8. How to specify different colors with ggplot - Stack Overflow

    How to specify different colors with ggplot Asked 8 years, 10 months ago Modified 6 years, 8 months ago Viewed 7k times

  9. How to manually fill colors in a ggplot2 histogram

    Jan 22, 2014 · 13 I am generating a histogram and I would like to color certain groups with specific colors. Here is my histogram: I have 14 groups and I would like to color the first 7 red, the next 4 …

  10. r - Change ggplot factor colors - Stack Overflow

    p + geom_boxplot(aes(fill = factor(cyl))) What controls which set of colors ggplot uses and how can you change it?