niceHist: niceHist

Description Usage Arguments Value

Description

A function to plot a nice histogram - one that uses ggplot2 but has sensible break behaviour in R. Produces a single histogram but is mostly called internally for things like plotPosts.

Usage

1
2
niceHist(parameter, fill = "dodgerblue", breaks = "scott", title = "",
  vline = "mean", textsize = 12, face = "bold")

Arguments

parameter

The a vecotr of values that you want a histogram of.

fill

The colour to fill the bars with

breaks

The algorithgm to calculate breaks. Defaults to "scott", can also be "fandd"

title

The title of the plot, defaults to off.

Value

A histogram with nice ggplot aesthetics, and good bin widths.


hferg/hfgr documentation built on May 17, 2019, 3:56 p.m.