Description Usage Arguments Details Value Examples
Probability plot of general simulated experiments
1 2  | 
x | 
 vector, possible outcomes in one trial of experiment  | 
n | 
 number of trials in one simulation  | 
times | 
 number of simulations  | 
prob | 
 probability assigned to each possible outcome  | 
qqplot | 
 an argument to output Q-Q plot or not, can be TRUE or FALSE  | 
col | 
 color of the plot  | 
type | 
 type of plot  | 
main | 
 an overall title for the plot  | 
sub | 
 a sub title for the plot  | 
The default probabilty equals to 1/n. All the assigned probabilites must between 0 and 1.
Plot of mean value and corresponding probabilities for all simulated outcomes.
1 2  | expt.simu.plot(x = c(1:3), n = 4, times = 1000, col = 'red')
expt.simu.plot(c(1:3), 4, 1000, prob = c(0.3, 0.1, 0.6), type = 'p')
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.