sampleMeans_histogram: Generate a histogram of sample means

Description Usage Arguments Value Author(s) Examples

View source: R/meanSamplingDistribution.R

Description

Returns a ggplot or plotly object of a histogram generated from a set of sample means

Usage

1
2
sampleMeans_histogram(sampleMeans, binwidth = 1,
  variableName = "Height", plotly = FALSE)

Arguments

sampleMeans

data frame of sample means

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
data("sampleData_means")
sampleMeans_histogram(sampleData_means,binwidth=.1)

jzemmels/statsfoRdummies documentation built on Oct. 31, 2020, 6:58 a.m.