geom_bar {ggplot2} R Documentation

Bar charts

Description


There are two types of bar charts: geombar() and geomcol(). geombar()
makes the height of the bar proportional to the number of cases in each
group (or if the weight aesthetic is supplied, the sum of the weights).
If you want the heights of the bars to represent values in the data, use
geom
col() instead. geombar() uses statcount() by default: it counts
the number of cases at each x position. geomcol() uses statidentity():
it leaves the data as is.

Usage

geom_bar(
    stat = "identity",
    position = "stack",
    color = "black",
    width = 0.7,
    size = 0.25,
    show.legend = TRUE);

Arguments

stat

-

position

-

color

-

width

[as double]

size

[as double]

show.legend

[as boolean]

env

[as Environment]

Details

Authors

SMRUCC genomics institute

Value

this function returns data object of type geom_bar.

clr value class

Examples


[Package ggplot2 version 1.0.0.0 Index]