# How to create a plot of Poisson distribution in R?

R ProgrammingServer Side ProgrammingProgramming

#### Artificial Intelligence : The Future Of Programming

15 Lectures 54 mins

#### Beyond Basic Programming - Intermediate Python

Most Popular

36 Lectures 3 hours

#### C Programming from scratch- Master C Programming

Best Seller

60 Lectures 8 hours

The Poisson distribution is a discrete distribution that has only one parameter named as lambda and it is the rate parameter. The rate parameter is defined as the number of events that occur in a fixed time interval. To create a plot of Poisson distribution in R, we can use the plot function with the density of the Poisson distribution using dpois function.

## Example

Live Demo

plot(dpois(x=1:50,lambda=3))

## Example

Live Demo

plot(dpois(x=1:50,lambda=3),type="l")

## Example

Live Demo

plot(dpois(x=1:50,lambda=3),type="b")

## Output

Updated on 07-Dec-2020 05:04:31