autoDensityPlot: Create a density estimate of a target variable

Description Usage Arguments Value

Description

Generates either a static ggplot or interactive plotly density estimate visualisation of the chosen target variable using geom_density.

Usage

1
autoDensityPlot(df, target, interactiveplot = FALSE, xlabel = NULL, ...)

Arguments

df

Dataframe that contains the target variable

target

The name of the target variable

interactiveplot

If FALSE, the default, returns a ggplot2 visualisation of the density estimate of the target variable. If TRUE, returns an interactive plotly visualisation of the histogram.

xlabel

Provide a character to override the default label for the x axis

...

Other arguments passed onto geom_density, such as colour = "red" or size = 2

Value

A density estimate visualisation of the target variable from the provided data


elastacloud/automatic-data-explorer documentation built on May 8, 2019, 9:29 a.m.