plot_mixture: Plot mixture

View source: R/plotting_functs.R

plot_mixtureR Documentation

Plot mixture

Description

Plots a mixture distribution.

Usage

plot_mixture(
  density_df,
  thresh = NULL,
  x_max = Inf,
  x_min = -Inf,
  points = TRUE,
  xlab = NULL
)

Arguments

density_df

a density df as outputted by "get_theoretical_densities_and_thresholds."

thresh

a threshold to plot as a vertical line

x_max

maximal x-value

x_min

minimal x-value

points

plot points? (if FALSE, only lines)

xlab

x-axis label

Value

a ggplot object


timothy-barry/glmeiv documentation built on Jan. 30, 2024, 3:46 p.m.