Learn R Programming

HVT (version 25.2.4)

edaPlots: 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
)

Value

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

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.

Author

Vishwavani <vishwavani@mu-sigma.com>

Examples

Run this code
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)

Run the code above in your browser using DataLab