make.table {litRiddle}R Documentation

Make Table and Plot

Description

A function to make a table of frequency counts for one variable, and to plot a histogram of the results.

Usage

make.table(table.of = NULL, 
    plot = TRUE, 
    xlab = table.of, 
    ylab = "count", 
    title = table.of,
    barcolor = "grey", 
    barfill = "darkgrey")

Arguments

table.of

which variable will be chosen? If not sure what variables are there, try typing get.columns() first.

plot

do you want a plot to be plotted? Default: TRUE.

xlab

name of the X axis

ylab

name of the Y axis

title

title of the plot

barcolor

outline color of the content

barfill

color used to fill the bars

Details

A basic way to show the distribution of an indicated variable from the litRiddle package. It provides the values, but also a simple histrogram.

Value

A character vector containing one chosen variable, optionally followed by a plot.

Author(s)

Saskia Lensink, Maciej Eder

References

https://literaryquality.huygens.knaw.nl/

See Also

make.table2, get.columns

Examples

make.table(table.of = "age.resp")

make.table(table.of = "age.resp", xlab = "age respondent", 
  ylab = "number of people", title = "Distribution of respondent age",
  barcolor = "red", barfill = "white")

[Package litRiddle version 1.0.0 Index]