plot_batmixfit: Plot a mixture of Batschelet type distributions.

Description Usage Arguments Value Examples

View source: R/plotFunctions.R

Description

Plot a mixture of Batschelet type distributions.

Usage

1
2
plot_batmixfit(x, params, dbat_fun = dpowbat, bins = 100, res = 400,
  hist_alpha = 0.3)

Arguments

x

Optional data vector of angles in radians to plot a histogram of.

params

A matrix of parameters.

dbat_fun

A function; the Batschelet function to use. Defaults to the Inverse Batschelet Function.

bins

Integer; The number of bins to use in the optional histogram.

res

Integer; The number of points at which to evaluate the density function.

hist_alpha

Numeric; The alpha value of the histogram of the data.

Value

A ggplot.

Examples

1
2
plot_batmixfit(params = cbind(mu = c(-pi/2, 0, pi/2, pi), kp = 4,
                              lam = c(-.9, .2, .8, 0), alph = .25))

keesmulder/flexcircmix documentation built on May 29, 2019, 3:02 a.m.