About 337,000 results
Open links in new tab
  1. Overlaying histograms with ggplot2 in R - Stack Overflow

    ggplot(histogram, aes(f0, fill = utt)) + geom_histogram(alpha = 0.2) is telling ggplot to construct one histogram using all the values in f0 and then color the bars of this single histogram …

  2. r - ggplot2: histogram with normal curve - Stack Overflow

    I've been trying to superimpose a normal curve over my histogram with ggplot 2. My formula:

  3. r - Creating a density histogram in ggplot2? - Stack Overflow

    Jan 11, 2014 · 39 I want to create the next histogram density plot with ggplot2. In the "normal" way (base packages) is really easy:

  4. r - ggplot2 - Multi-group histogram with in-group proportions …

    ggplot2 - Multi-group histogram with in-group proportions rather than frequency Asked 12 years, 5 months ago Modified 7 years, 8 months ago Viewed 55k times

  5. Add means to histograms by group in ggplot2 - Stack Overflow

    Mar 30, 2022 · I am following this source to do histograms by group in ggplot2. The sample data looks like this:

  6. How to align the bars of a histogram with the x axis?

    If you compare the histogram with the bar plot, you will notice two differences: There is a little gap between the bars in the bar plot, while they touch in the histogram. You could make the bars …

  7. r - Overlay histogram with density curve - Stack Overflow

    I am trying to make a histogram of density values and overlay that with the curve of a density function (not the density estimate). Using a simple standard normal example, here is some …

  8. How to plot histogram/ frequency-count of a vector with ggplot?

    Sep 16, 2015 · 17 I want to plot with ggplot the frequency of values from a numeric vector. With plot() is quite straight forward but I can't get the same result with ggplot.

  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, …

  10. Adding stat = count on top of histogram in ggplot - Stack Overflow

    Aug 26, 2022 · 1 I've seen some other examples (especially using geom_col () and stat_bin ()) to add frequency or count numbers on top of bars. I'm trying to get this to work with …