drewcurves: Andrews Plot

Description Usage Arguments Details Value Author(s)

Description

This function computes the Andrews plot of a dataframe.

Usage

1
2
drewcurves(df, type = 1, group = NULL, resolution = 100,
  return_dataframe = FALSE, minmax_scaling = TRUE, xlim = c(-pi, pi))

Arguments

df

An nxp dataframe or matrix.

type

Type of Fourier series to be computed. See vignette.

group

Integer indicating the number of column that represents the group, if any.

resolution

The number of regularly spaced points where the Fourier series will be evaluated.

return_dataframe

If TRUE, the function will return the dataframe used to generate the Andrews plot rather than the plot itself.

minmax_scaling

If TRUE, it substract the mimimum and divide by the length of the range of every column.

xlim

A vector of size two with the limits where the Fourier series will be evaluated. The default limits are are -pi and pi.

Details

The default output is the Andrews plot generated with ggplot2.

Value

A ggplot object or a dataframe (depending on the parameter 'return_dataframe').

Author(s)

Guillermo Basulto-Elias


gbasulto/drewcurves documentation built on May 8, 2019, 6:47 p.m.