plot_hist: Convenience function to plot a histogram with a...

Description Usage Arguments Examples

View source: R/plotting.R

Description

Convenience function to plot a histogram with a pipe-compatible interface.

Usage

1
plot_hist(df, var, main = paste("Histogram of", var), xlab = var, ...)

Arguments

df

A data.frame contaning the data

var

A string naming the variable to plot

main

Title of the plot

xlab

Label of the x-axis

...

Arguments passed to hist()

Examples

1
 mtcars %>% plot_hist("mpg")

antoine-sachet/customFunctions documentation built on Sept. 25, 2020, 8:56 p.m.