randomSample_histogram: Generate a histogram of a random sample

Description Usage Arguments Value Author(s) Examples

Description

Returns a ggplot or plotly object of a histogram generated from a random sample

Usage

1
2
randomSample_histogram(sampleData, binwidth = 1,
  variableName = "Height", plotly = FALSE)

Arguments

sampleData

data frame of random samples from a normal distribution

binwidth

width of bins in histogram

variableName

name of variable to be labeled on the x-axis of histogram

plotly

specifies whether a plotly object is desired

Value

A ggplot or plotly object, depending on whether the plotly argument was specified TRUE or FALSE.

Author(s)

Joe Zemmels

Examples

1
2
dat <- randomSample(mu=1,sigma=4,sampleSize=100,numSamples=5)
randomSample_histogram(dat)

jzemmels/statsfoRdummies documentation built on May 14, 2019, 12:55 a.m.