edaPlots: plots for data analysis

View source: R/edaPlots.R

edaPlotsR Documentation

plots for data analysis

Description

This is the main function that provides exploratory data analysis plots

Usage

edaPlots(
  df,
  time_column,
  output_type = "summary",
  n_cols = -1,
  grey_bars = NULL
)

Arguments

df

Dataframe. A data frame object.

time_column

Character. The name of the time column in the data frame. Can be given only when the data is time series

output_type

Character. The name of the output to be displayed. Options are 'summary', 'histogram', 'boxplot', 'timeseries' & 'correlation'. Default value is summary.

n_cols

Numeric. A value to indicate how many columns to be included in the output.

grey_bars

List. A list of timestamps where each list contains two elements: start and end period, which will be highlighted in gray in the time series plot. Default value is NULL.

Value

Five objects which include time series plots, data distribution plots, box plots, correlation plot and a descriptive statistics table.

Author(s)

Vishwavani <vishwavani@mu-sigma.com>

Examples

dataset <- data.frame(date = as.numeric(time(EuStockMarkets)),
DAX = as.numeric(EuStockMarkets[, "DAX"]),
SMI = as.numeric(EuStockMarkets[, "SMI"]),
CAC = as.numeric(EuStockMarkets[, "CAC"]),
FTSE = as.numeric(EuStockMarkets[, "FTSE"]))
edaPlots(dataset)
edaPlots(dataset, time_column = 'date', output_type = 'timeseries', n_cols = 4)

HVT documentation built on April 3, 2025, 8:45 p.m.