autoplot.tf: Autoplot and autolayer methods for 'tf' objects

View source: R/autoplot.R

autoplot.tfR Documentation

Autoplot and autolayer methods for tf objects

Description

Convenient plotting methods for tf objects. autoplot() creates a complete spaghetti plot, autolayer() creates a layer that can be added to an existing ggplot2::ggplot() or tf_ggplot().

Usage

## S3 method for class 'tf'
autoplot(object, ...)

## S3 method for class 'tf'
autolayer(object, ...)

Arguments

object

a tf object

...

passed to ggplot2::geom_line()

Value

A tf_ggplot() object for autoplot(), a ggplot2::layer() object for autolayer().

See Also

Other tidyfun visualization: ggcapellini, gglasagna(), ggspaghetti

Examples


library(ggplot2)
f <- tf_rgp(5)
autoplot(f)
ggplot() + autolayer(f)
tf_ggplot() + autolayer(f)


tidyfun documentation built on April 24, 2026, 5:06 p.m.