A nice barplot of a table with bar labels and absolute/relative frequencies.

vis.BarPlot(
  inTable,
  percentage = F,
  subtitle = TRUE,
  main = "main",
  ylab = "",
  decimals = 1
)

Arguments

inTable

The table to plot

percentage

Whether to use percentages of absolute numbers

subtitle

Whether to add an informative subtitle in the barplot

main

The main title of the barplot

ylab

The title in the Y axes

decimals

Number of decimals to use

Value

A nice barplot of the inTable

See also

Other vis: vis.Hist()

Author

Dimitris Kavroudakis dimitris123@gmail.com

Examples

library(goal)
library(plotrix)
cars = table( c(1,1,1,1,3,2,4,3,5,4,6,5,1,5,5,2,2,2,3,3,3,1,1,2) )
vis.BarPlot(inTable = cars, percentage = TRUE,  subtitle = TRUE,
main = "Relative frequency of cars", ylab = "Cars", decimals=1)