gghistplot {RMOPI}R Documentation

Plot the Histogram Figure

Description

Plot the histgram figure beautifully with ggplot.

Usage

gghistplot(data, mapping, bins = 10)

Arguments

data

a tibble

mapping

the mapping parameter

bins

the number of bins

Value

A histogram figure by ggplot

Examples

date <- as.Date("2015-01-01") + days(0:180)
thero <- returns(rGbm("thero", date))[-1]
tthero <- tibble(x = date[-1], y = thero)
gghistplot(tthero, aes(x = thero, y = stat(density)), bins = 20)

[Package RMOPI version 1.1 Index]