Skip to contents

Takes a data frame with a list column of fd objects, evaluates each on a common grid, and draws them as overlaid line plots.

Usage

plot_funs(
  .data,
  funs,
  ...,
  n = 401,
  rangeval = range(lapply(dplyr::pull(.data, {
     {
         funs
     }
 }),
    function(fun) fun$basis$rangeval)),
  x = seq(rangeval[1], rangeval[2], length.out = n)
)

Arguments

.data

A data frame with a list column of fd objects.

funs

Tidy-selection for that column.

...

Additional aesthetic arguments forwarded to ggplot2::aes().

n

Number of evaluation points. Default 401.

rangeval

Numeric pair; abscissa range. Defaults to the union of the basis ranges of the functions in funs.

x

Evaluation grid. Defaults to seq(rangeval[1], rangeval[2], length.out = n).

Value

A ggplot object.