About 287,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. 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 …

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

    Aug 26, 2022 · Adding stat = count on top of histogram in ggplot Asked 3 years, 2 months ago Modified 1 year, 2 months ago Viewed 8k times

  5. 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:

  6. Adjusting the x-Axis and Bins when Making a Histogram with …

    Dec 8, 2016 · I,n new to histograms in ggplot2 and feel like I'm missing something obvious. Using the the data below, I'm trying to create a simple histogram. All I want to do is have the x-axis …

  7. r - Show percent in ggplot histogram - Stack Overflow

    Sep 16, 2021 · I do a histogram in percentages (which works well) but when I try to print the value of the percentages, the scale of the y axis is not right anymore. The code for the histogram in …

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

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

    Sep 16, 2015 · 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. library (ggplot2) …

  10. 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: