build_density: A simple density plot for the waterfall function

Description Usage Arguments Value

Description

A simple density plot for the waterfall function

Usage

1
2
build_density(x, x.lims, fill, col = "black", bw = "SJ",
  show.underline = T, alpha = 0.8, label.expand = 0)

Arguments

x

The data to be displayed.

x.lims

The range of values which should be displayed.

fill

The color which will be used for the inside plot area. This value is passed to geom_density.

col

The color which will be used for the plot border. This value is passed to geom_density.

bw

The smoothing bandwidth to be used. This value is passed to geom_density. The default value is bw.SJ.

show.underline

When TRUE, a horiznotal line will be drawn under the plot. The default value is TRUE.

alpha

The alpha level for the inside area of the plot. The default value is 0.8.

label.expand

The relative expand value for the right side. The default value is 0.0.

Value

ggplot-based plot which can be passed to the waterfall function.


AndreyAkinshin/ggwaterfall documentation built on June 23, 2019, 12:01 a.m.