ggplot(data=diamonds, aes(x=clarity)) +
geom_bar() +
geom_text(stat="count", aes(label=..count..), vjust=-1)
More Related Contents:
- geom_text how to position the text on bar as I want?
- Stacked bar chart
- Change bar plot colour in geom_bar with ggplot2 in r
- ggplot bar plot with facet-dependent order of categories
- ggplot2 geom_bar – how to keep order of data.frame [duplicate]
- customize ggplot2 axis labels with different colors
- ggplot2 and a Stacked Bar Chart with Negative Values
- ggplot replace count with percentage in geom_bar
- Generate paired stacked bar charts in ggplot (using position_dodge only on some variables)
- Add percentage labels to a stacked barplot
- ggplot2: Setting geom_bar baseline to 1 instead of zero
- Change geom_text’s default “a” legend to label string itself
- How to make variable bar widths in ggplot2 not overlap or gap
- Bars in geom_bar have unwanted different widths when using facet_wrap
- R: ggplot stacked bar chart with counts on y axis but percentage as label
- Connect stack bar charts with multiple groups with lines or segments using ggplot 2
- ggplot: Order bars in faceted bar chart per facet
- annotate boxplot in ggplot2
- Creating a vertical color gradient for a geom_bar plot
- Issue when passing variable with dollar sign notation ($) to aes() in combination with facet_grid() or facet_wrap()
- Showing data values on stacked bar chart in ggplot2
- How to use facets with a dual y-axis ggplot
- What is the width argument in position_dodge?
- How to draw lines outside of plot area in ggplot2?
- add “floating” axis labels in facet_wrap plot
- creating “radar chart” (a.k.a. star plot; spider plot) using ggplot2 in R
- ggmap Error: GeomRasterAnn was built with an incompatible version of ggproto
- how to show a legend on dual y-axis ggplot
- Different colours of geom_line above and below a specific value
- use ggpairs to create this plot