Plot method for the single_mean function

Share:

Description

Plot method for the single_mean function

Usage

1
2
3
## S3 method for class 'single_mean'
plot(x, plots = "hist", shiny = FALSE,
  custom = FALSE, ...)

Arguments

x

Return value from single_mean

plots

Plots to generate. "hist" shows a histogram of the data along with vertical lines that indicate the sample mean and the confidence interval. "simulate" shows the location of the sample mean and the comparison value (comp_value). Simulation is used to demonstrate the sampling variability in the data under the null-hypothesis

shiny

Did the function call originate inside a shiny app

custom

Logical (TRUE, FALSE) to indicate if ggplot object (or list of ggplot objects) should be returned. This opion can be used to customize plots (e.g., add a title, change x and y labels, etc.). See examples and http://docs.ggplot2.org/ for options.

...

further arguments passed to or from other methods

Details

See https://radiant-rstats.github.io/docs/basics/single_mean.html for an example in Radiant

See Also

single_mean to generate the result

summary.single_mean to summarize results

Examples

1
2
result <- single_mean("diamonds","price", comp_value = 3500)
plot(result, plots = c("hist", "simulate"))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.