Learn R Programming

bayesrules (version 0.0.2)

plot_poisson_likelihood: Plot a Poisson Likelihood Function

Description

Plots the Poisson likelihood function for variable \(\lambda\) given a vector of Poisson counts y.

Usage

plot_poisson_likelihood(y, lambda_upper_bound = 10)

Arguments

y

vector of observed Poisson counts

lambda_upper_bound

upper bound for lambda values to display on x-axis

Value

a ggplot of Poisson likelihood

Examples

Run this code
# NOT RUN {
plot_poisson_likelihood(y = c(4, 2, 7), lambda_upper_bound = 10)
# }

Run the code above in your browser using DataLab