autoHistogramPlot: Create a histogram of a target variable

Description Usage Arguments Value

Description

Generates either a static ggplot or interactive plotly histogram visualisation of the chosen target variable.

Usage

1
2
autoHistogramPlot(df, target, binwidth = NULL, interactiveplot = FALSE,
  xlabel = NULL, ..., stat = "bin")

Arguments

df

Dataframe that contains the target variable

target

The name of the target variable

binwidth

The width of the bins. The default NULL gives standard geom_histogram behaviour, but should be overridden with your own value

interactiveplot

If FALSE, the default, returns a ggplot visualisation of the histogram 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_histogram, such as colour = "blue" or fill = NA

stat

Defaults to stat = "bin" for numeric data. If categorical data is passed then the function will automatically change to stat = "count"

Value

A histogram of the target variable from the provided data


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