Package: tidyfun 0.2.0

Fabian Scheipl

tidyfun: Tidy Functional Data Wrangling and Visualization

Represent, visualize, describe and wrangle functional data in tidy data frames, building on the 'tf' package. Provides data types for functional observations that work as columns in data frames, enabling manipulation with 'dplyr' verbs and visualization with 'ggplot2' geoms designed for functional data.

Authors:Fabian Scheipl [aut, cre, cph], Jeff Goldsmith [aut], Julia Wrobel [aut], Maximilian Mücke [ctb]

tidyfun_0.2.0.tar.gz
tidyfun_0.2.0.zip(r-4.7-any)tidyfun_0.2.0.zip(r-4.6-any)tidyfun_0.2.0.zip(r-4.5-any)
tidyfun_0.2.0.tgz(r-4.6-any)tidyfun_0.2.0.tgz(r-4.5-any)
tidyfun_0.2.0.tar.gz(r-4.7-any)tidyfun_0.2.0.tar.gz(r-4.6-any)
tidyfun_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
tidyfun/json (API)

# Install 'tidyfun' in R:
install.packages('tidyfun', repos = c('https://tidyfun.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/tidyfun/tidyfun/issues

Pkgdown/docs site:https://tidyfun.github.io

Datasets:
  • chf_df - Congestive heart failure accelerometry data
  • dti_df - Diffusion tensor imaging data

On CRAN:

Conda:

8.51 score 39 stars 84 scripts 396 downloads 32 exports 45 dependencies

Last updated from:2c9e5546fa. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK268
source / vignettesOK596
linux-releaseOK261
macos-releaseOK135
macos-oldrelOK192
windows-develOK143
windows-releaseOK161
windows-oldrelOK124
wasm-releaseOK183

Exports:autolayerautoplotgeom_capelinigeom_capellinigeom_cappelinigeom_cappellinigeom_errorbandgeom_fboxplotgeom_meatballsgeom_spaghettiGeomCapelliniGeomErrorbandGeomFboxplotGeomMeatballsGeomSpaghettigglasagnais_tf_ggplotparse_tf_aestheticsstat_capellinistat_errorbandstat_fboxplotstat_tfStatCapelliniStatErrorbandStatFboxplotStatTftf_gathertf_ggplottf_nesttf_phaseplanetf_spreadtf_unnest

Dependencies:backportscheckmateclicpp11crayondplyrfarverforcatsgenericsGGallyggplot2ggstatsgluegtablehmsisobandlabelinglatticelifecyclemagrittrMatrixmgcvnlmepatchworkpillarpkgconfigprettyunitsprogresspurrrR6RColorBrewerrlangS7scalesstringistringrtftibbletidyrtidyselectutf8vctrsviridisLitewithrzoo

Visualization
Plotting with ggplot2 | tf_ggplot with standard geoms | Using with other ggplot2 features | Multivariate functional data (tf_mv) | Colouring trajectories by argument | Phase-plane plots | Functional data boxplots with geom_fboxplot | Heatmaps for functional data: gglasagna | geom_capellini | Plotting with base R

Last update: 2026-09-03
Started: 2019-06-01

tf Vectors and Operations
tf-Class: Definition | tf-class | Example Data | tf subclass: tfd | tf subclass: tfb | tfb_spline: spline basis | Penalization: | tfb FPC-based | tf-Class: Methods | subset & subassign: | compare & compute: | summarize across a vector of functions: | summarize each function over its domain: | Methods for "functional" operations | evaluate: | (simple, local) smoothing | differentiate & integrate: | query | zoom & query

Last update: 2026-07-15
Started: 2019-06-01

Vector-valued functional data: gait cycles and hurricane tracks
1. A quick tour of vector-valued functional data | What is a vector-valued function? | The tf_mv classes: tfd_mv and tfb_mv | Constructing tf_mv objects | Geometry on the bundle: speed, arc length, reparametrization | Aligning vector-valued curves: a ladder | 2. How variable is a "normal" gait cycle? | Pointwise mean and standard deviation | Most- and least-varied subjects | A ladder of registrations | Rung 1 -- arc-length reparametrization | Rung 2 -- alignment to a 1-d reference signal | Rung 3 -- joint multivariate reparametrization (srvf_mv) | Rung 4 -- full elastic shape registration | Quantifying the alignment | Shape registration and its quotient spaces | Modes of variation via FPC | Joint modes of variation via MFPCA | 3. Atlantic storms as 4-dimensional curves | Movement workflow: regularize, then describe | A single 4-d curve: Hurricane Katrina (2005) | Track map, faceted by peak intensity | Scalar features extracted from the 4-d object | Intensity and forward-speed life-cycles per category | Smoothing on normalised time | 4. Recap | References

Last update: 2026-07-15
Started: 2026-07-15

Converting to & from tf
Conversion from matrices | Conversion to tf from a data frame | ... in "long" format | ... in "wide" format | Changing representation with tf_rebase | Splitting and combining functions | Conversion from fda objects | Reversing the conversion | Conversion from tf to data frames | Converting back to a matrix or data frame

Last update: 2026-04-24
Started: 2019-06-01

Curve Registration: Practical Guide and Pitfalls
Registration: Template, Warp, Domain | What Is the Template? | What is a Warping Function? | Domain-Preserving vs Non-domain-preserving Warps | Example: Shift Registration with Explicit Template | Choosing a Registration Method | Evidence-Based Method Selection | Pitfalls and Likely Failure Modes | Structured shape variation | Noise dominates phase signal | Sparse or irregular grids | Boundary and overlap artifacts | Over-warping | Lambda penalization | Unsuitable template | Practical Diagnostics Workflow | Step 1: Register and inspect summary | Step 2: Visual inspection via plot() | Step 3: Quantify alignment of specific features | Step 4: Compare with an alternative method | Theoretical Background 101 | SRVF Framework | CC (Continuous Registration Criterion) | Affine (Shift / Scale) | Landmark | Worked Examples | Pinch Data: Cross-method Comparison | Growth Data: Deeper Real-data Workflow | Data representation matters | Penalization | Landmark registration | References

Last update: 2026-04-24
Started: 2026-03-17

Data Wrangling
Data manipulation using tidyfun | Example datasets | Existing tidyverse functions | tf helper functions in tidy workflows | Working with data.table

Last update: 2026-04-24
Started: 2019-06-01

Developer Notes
Why use tidyfun | Thoughts on design | Using tidyfun in new functions | Keep us informed!

Last update: 2026-04-24
Started: 2020-04-21

Readme and manuals

Help Manual

Help pageTopics
Add layers to tf_ggplot objects+.tf_ggplot
Autoplot and autolayer methods for 'tf' objectsautolayer.tf autoplot.tf
Autoplot and autolayer methods for multivariate ('tf_mv') objectsautolayer.tf_mv autoplot.tf_mv
Congestive heart failure accelerometry datachf_df
Diffusion tensor imaging datadti_df
Glyph plots for 'tf' objectsGeomCapellini geom_capelini geom_capellini geom_cappelini geom_cappellini ggcapellini StatCapellini stat_capellini
Error bands using 'tf' objects as boundsGeomErrorband geom_errorband ggerrorband StatErrorband stat_errorband
Functional boxplots for 'tf' objectsGeomFboxplot geom_fboxplot ggfboxplot StatFboxplot stat_fboxplot
Lasagna plots for 'tf's using 'ggplot2'gglasagna
ggplot_build method for tf_ggplotggplot_build.tf_ggplot
Spaghetti plots for 'tf' objectsGeomMeatballs GeomSpaghetti geom_meatballs geom_spaghetti ggspaghetti StatTf stat_tf
Check if object is a tf_ggplotis_tf_ggplot
Parse aesthetic mappings to separate tf and regular aestheticsparse_tf_aesthetics
Print method for tf_ggplotprint.tf_ggplot
Evaluate 'tf's inside a 'data.frame'tf_evaluate.data.frame
Gather all columns representing functional measurements into a 'tfd'-objecttf_gather
Create a tf-aware ggplottf_ggplot
Turn "long" tables into tidy data frames with 'tf'-objectstf_nest
Phase-plane representation of functional datatf_phaseplane
Spread a 'tf'-column into many columns representing the function evaluations.tf_spread
Turn (data frames with) 'tf'-objects / list columns into "long" tables.tf_unnest tf_unnest.data.frame tf_unnest.tf tf_unnest.tf_mv
Format tidy functional data for tibblesobj_sum.tf pillar_shaft.tf type_sum.tf