vis.BarPlot: vis.BarPlot

View source: R/vis.r

vis.BarPlotR Documentation

vis.BarPlot

Description

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

Usage

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

Author(s)

Dimitris Kavroudakis dimitris123@gmail.com

See Also

Other vis: vis.Hist()

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)


dimitrisk/goal documentation built on April 20, 2024, 5:12 p.m.