Learn R Programming

bayesrules (version 0.0.3)

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)

Value

a ggplot of Poisson likelihood

Arguments

y

vector of observed Poisson counts

lambda_upper_bound

upper bound for lambda values to display on x-axis

Examples

Run this code
plot_poisson_likelihood(y = c(4, 2, 7), lambda_upper_bound = 10)

Run the code above in your browser using DataLab