Description Usage Arguments Details Value Examples

General experiment plot with basic probability

1 2 |

`x` |
vector, possible outcomes in one trial of experiment |

`n` |
number of trials |

`prob` |
probability assigned to each possible outcome |

`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 possible outcomes.

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.