Learn R Programming

radiant (version 0.1.95)

plot.single_prop: Plot method for the single_prop function

Description

Plot method for the single_prop function

Usage

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

Arguments

x
Return value from single_prop
sp_plots
Plots to generate. "hist" shows a histogram of the data along with vertical lines that indicate the sample proportion and the confidence interval. "simulate" shows the location of the sample proportion and the comparison value (sp_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_prop.html for an example in Radiant

See Also

single_prop to generate the result

summary.single_prop to summarize the results

Examples

Run this code
result <- single_prop("diamonds","clarity", sp_levels = "IF", sp_comp_value = 0.05)
plot(result, sp_plots = c("hist", "simulate"))

Run the code above in your browser using DataLab