Description Usage Arguments Value Author(s) References See Also
histogram
Display an histogram of frequency distribution.
#'
1 2 3 4 5 6 7 8 9 |
xvar |
As numbers, factors or text. |
title |
As character : main title |
ylab |
Y axis label |
xlab |
X axis label |
by |
For date values by parameters allows to plot histogram "by" days,months or years |
width |
numeric, define width of each bar using the unit of the variable width = 5 to have histogram of age by 5 years |
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. |
An array containing resulting graph #' @examples histogram(c(3,1,2,2,5))
Gilles Desve
Based on: Epi6 and Stata functionnality, available at https://github.com/.
bargraph
for bar graph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.