geom_col {ggplot2} R Documentation

Bar charts

Description

<br /> There are two types of bar charts: geom_bar() and geom_col(). geom_bar() <br /> makes the height of the bar proportional to the number of cases in each<br /> group (or if the weight aesthetic is supplied, the sum of the weights).<br /> If you want the heights of the bars to represent values in the data, use <br /> geom_col() instead. geom_bar() uses stat_count() by default: it counts <br /> the number of cases at each x position. geom_col() uses stat_identity():<br /> it leaves the data as is.

Usage

geom_col(
    mapping = NULL,
    data = NULL,
    position = "stack",
    just = 0.5,
    width = 0,
    na.rm = FALSE,
    show.legend = NULL,
    inherit.aes = TRUE,
    args = NULL);

Arguments

mapping

data

position

just

[as double]

width

[as double]

na.rm

[as boolean]

show.legend

[as boolean]

inherit.aes

[as boolean]

args

[as list]

env

[as Environment]

Details

Authors

SMRUCC genomics institute

Value

this function returns data object of type any kind.

clr value class

Examples


[Package ggplot2 version 1.0.0.0 Index]