barplot: Barplot

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Interface to graphics::barplot with extra flexibility

Usage

1
2
3
4
5
6
7
8
9
barplot(
  height,
  ...,
  border = colour,
  colour = color,
  color = NULL,
  col = fill,
  fill = NULL
)

Arguments

height

As for graphics::barplot

...

additional arguments sent to graphics::barplot

border, colour, color

alternative argument names for the border; may be a colour palette

col, fill

alternative argument names for the fill colour; may be a colour palette

Value

as for graphics::barplot

Examples

1
2
3
## Poor man's flashy histogram
rnorm(5000) %>% cut(c(-Inf,(-5:5)/2,Inf)) %>%
   table %>% barplot(fill=pal_cool, space=0, las=2)

BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.