# Compute the Value of Poisson Quantile Function in R Programming – qpois() Function

`qpois()` function in R Language is used to compute the value of Poisson Quantile Function. It creates a quantile density plot for poisson distribution.

Syntax: qpois(vec, lambda)

Parameters:
vec: Sequence of integer values
lambda: Average number of events per interval

Example 1:

 `# R program to compute  ` `# Poisson Quantile Density ` ` `  `# Sequence of x-values ` `x <``-` `seq(``0``, ``1``, by ``=` `.``01``) ` ` `  `# Calling qpois() Function ` `y <``-` `qpois(x, ``lambda` `=` `5``) ` `y `

Output:

```     0   1   1   1   1   2   2   2   2   2   2   2   2   3   3   3   3   3
   3   3   3   3   3   3   3   3   3   4   4   4   4   4   4   4   4   4
   4   4   4   4   4   4   4   4   4   5   5   5   5   5   5   5   5   5
   5   5   5   5   5   5   5   5   6   6   6   6   6   6   6   6   6   6
   6   6   6   6   6   7   7   7   7   7   7   7   7   7   7   8   8   8
   8   8   8   8   9   9   9  10  10  11 Inf
```

Example 2:

 `# R program to compute  ` `# Poisson Quantile Density ` ` `  `# Sequence of x-values ` `x <``-` `seq(``0``, ``1``, by ``=` `0.01``) ` ` `  `# Calling qpois() Function ` `y <``-` `qpois(x, ``lambda` `=` `15``) ` ` `  `# Plot a graph ` `plot(y) `

Output: My Personal Notes arrow_drop_up Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.