Learn R Programming

radiant (version 0.1.95)

plot.single_mean: Plot method for the single_mean function

Description

Plot method for the single_mean function

Usage

"plot"(x, sm_plots = "hist", shiny = FALSE, ...)

Arguments

x
Return value from single_mean
sm_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 (sm_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
...
further arguments passed to or from other methods

Details

See http://vnijs.github.io/radiant/quant/single_mean.html for an example in Radiant

See Also

single_mean to generate the result

summary.single_mean to summarize results

Examples

Run this code
result <- single_mean("diamonds","price", sm_comp_value = 3500)
plot(result, sm_plots = c("hist", "simulate"))

Run the code above in your browser using DataLab