ggBidirectionalBar2: Draw a static bidirectional bar plot

Description Usage Arguments Value Examples

Description

Draw a static bidirectional bar plot

Usage

1
2
ggBidirectionalBar2(data, left = NULL, right = NULL, label = NULL,
  width = c(0.46, 0.55), title = "")

Arguments

data

A data.frame

left

A character vector of column names be assigned to left-sided bar

right

A character vector of column names be assigned to right-sided bar

label

A character vector of column names be assigned to the label

width

An integer vector specifying the relative width of two barplots.

Value

A static bidirectional bar plot

Examples

1
2
3
4
require(grid)
require(ggplot2)
KS2016=get_popdata("KS",2016)
ggBidirectionalBar2(data=KS2016,left="Male",right="Female",label="Age")

cardiomoon/moonBook2 documentation built on May 13, 2019, 12:40 p.m.