distr.simu.plot {clttools} | R Documentation |

## Histogram and Q-Q plot of any given continuous distribution

### Description

Histogram and Q-Q plot of any given continuous distribution

### Usage

```
distr.simu.plot(distr, n, times, prob = NULL, qqplot = FALSE, col = "black", type = NULL,
main = NULL, sub = NULL)
```

### Arguments

`distr` |
vector, all possible outcomes, population distribution |

`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 |

### Details

The default probabilty equals to 1/n. All the assigned probabilites must between 0 and 1.

### Value

Plot of mean value and corresponding probabilities for all simulated outcomes.

### Examples

```
distr.simu.plot(distr = c(1,0.2,3.4,5,6.6,1.1,5,4.7,2.33,3), n = 4, times = 1000, col = 'red')
```

[Package

*clttools*version 1.3 Index]