PlotHistAndGenVonMises: Plot histogram of data and generalized von Mises distribution

Description Usage Arguments Details Value

Description

Plots a histogram of the data with an option to fit a generalized von Mises distribution

Usage

1
2
PlotHistAndGenVonMises (df, var, by, pars, bin_width,
  fit_gen_von_mises, fit_color, x_lab, title)

Arguments

df

Dataframe of data

var

Column name, variable to fit von Mises distribution

by

Column name, optional, column name used to subset data, default is NULL.

pars

Parameter valuess, optional. A set of parameters used in place of pars generated within the function. Default is NULL.

bin_width

Numeric, bin size, default is: 15 degrees or 2*pi/24 radians

fit_gen_von_mises

Logical, whether or not to fit and show generalized von Mises distribution. Default is TRUE.

fit_color

String, color used for von Mises fit line, quantiles, and parameter value text. Default is "black"

x_lab

String, name for x-axis, default is 'var'.

title

String, title of plot, default is NULL.

Details

Automatically adjusts plot for degrees or radians input, but all parameter estimates are based on radians

Value

Plots of the data with a fitted von Mises distribution.


Blakemassey/baear documentation built on Dec. 25, 2021, 9:48 a.m.