vis.BarPlot | R Documentation |
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
)
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 |
decimals |
Number of decimals to use |
A nice barplot of the inTable
Dimitris Kavroudakis dimitris123@gmail.com
Other vis:
vis.Hist()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.