bargraph: bargraph

Description Usage Arguments Value Author(s) References See Also

View source: R/plots.R

Description

bargraph Display a bar graph of frequency distribution. #'

Usage

1
bargraph(xvar, title, ylab = "count", color = "#000099")

Arguments

xvar

As numbers, factors or text.

title

As character : main title

ylab

Y Axis label

color

Colors can be specified as color eg "red" "blue" or as a hexadecimal RGB triplet, such as "#0066CC". The first two digits are the level of red, the next two green, and the last two blue. The value for each ranges from 00 to FF in hexadecimal (base-16) notation, which is equivalent to 0 and 255 in base-10. For example, “#FFFFFF” is white and “#990000” is a deep red.

Value

An array containing resulting graph #' @examples bargraph(c(3,1,2,2,5))

Author(s)

Gilles Desve

References

Based on: Epi6 and Stata functionnality, available at https://github.com/.

See Also

histogram for bar graph


gdesve/epifield documentation built on Jan. 23, 2022, 10:03 a.m.