Note that ..ncount..
rescales to a maximum of 1.0, while ..count..
is the non scaled bin count.
ggplot(mydataframe, aes(x=value)) +
geom_histogram(aes(y=..count../sum(..count..)))
Which gives:
More Related Contents:
- Combine base and ggplot graphics in R figure window
- Storing ggplot objects in a list from within loop in R
- Remove space between plotted data and the axes
- Overlay normal curve to histogram in R
- Overlay histogram with density curve
- Label points in geom_point
- Wrap long axis labels via labeller=label_wrap in ggplot2
- Stacked Bar Plot in R
- What do hjust and vjust do when making a plot using ggplot?
- Adding table within the plotting region of a ggplot in r
- Reduce PDF file size of plots by filtering hidden objects
- Plot over multiple pages
- ggplot2 3D Bar Plot
- How can we make xkcd style graphs?
- How to plot a hybrid boxplot: half boxplot with jitter points on the other half?
- How to conditionally highlight points in ggplot2 facet plots – mapping color to column
- ggplot2 – adding secondary y-axis on top of a plot
- Plot a function with ggplot, equivalent of curve()
- Different breaks per facet in ggplot2 histogram
- How to align the bars of a histogram with the x axis?
- ggplot2, Ordering y axis
- Issue with ggplot2, geom_bar, and position=”dodge”: stacked has correct y values, dodged does not
- Plot background colour in gradient
- R Plot Filled Longitude-Latitude Grid Cells on Map
- Creating multi column legend in ggplot
- Programmatically insert header and plot in same code chunk with R markdown using results=’asis’
- Add raster to ggmap base map: set alpha (transparency) and fill color to inset_raster() in ggplot2
- Creating a vertical color gradient for a geom_bar plot
- What does the error “arguments imply differing number of rows: x, y” mean?
- heatmap-like plot, but for categorical variables