.plot_hist {BayesFBHborrow}R Documentation

Plot histogram from MCMC samples

Description

Plots a histogram of the given discrete MCMC samples

Usage

.plot_hist(
  samples,
  title = "",
  xlab = "Values",
  ylab = "Frequency",
  color = "black",
  fill = "blue",
  binwidth = 0.05,
  scale_x = FALSE
)

Arguments

samples

data.frame containing the discrete MCMC samples

title

title of the plot, default is none

xlab

x-label of the plot, default is "Values"

ylab

y-label of the plot, default is "Frequency"

color

outline color for the bars, default is "black"

fill

fill color, default is "blue"

binwidth

width of the histogram bins, default is 0.5

scale_x

option to scale the x-axis, suitable for discrete samples, default is FALSE

Value

a ggplot2 object


[Package BayesFBHborrow version 2.0.1 Index]