makeHist: Make a histogram, either plot or its data

Description Usage Arguments Value Examples

Description

Short demo on how to produce dynamic content in a shiny app at Rapporteket

Usage

1
makeHist(df, var, bins, makeTable = FALSE)

Arguments

df

dataframe from which output is to be made

var

string defining which varable in the data frame to use

bins

numeric vector defining the number of equally large groups

makeTable

Logical that if TRUE function will return a data frame containin the bin borders and count within each bin

Value

a graphical object or data frame

Examples

1
makeHist(df = mtcars, var = "mpg", bins = 5, makeTable = FALSE)

lenaringstado/SoknadNSMoppg documentation built on June 22, 2019, 3:59 a.m.