This function is mostly for plotting the permutations in this package, but can still be used for making a nice plot, if you have the values of a distribution you want to plot nicely and an observed value. To use this you need to install ggplot2.

plot_permutation(data, observed, title)

Arguments

data

vector of values, that can be used for a distribution (or that you just want plotted)

observed

observed value

title

title of the plot (string)

Value

plot_permutaion returns a ggplot.