43  xyVector

Package splines shipped with R version 4.5.2 (2025-10-31) defines an S3 class 'xyVector'. Listing 43.1 summarizes the S3 methods for the class 'xyVector' in package splines,

Listing 43.1: S3 methods splines*::*.xyVector
Code
library(splines)
.S3methods(class = 'xyVector', all.names = TRUE) |> 
  attr(which = 'info', exact = TRUE)
#                        visible                from       generic  isS4
# as.data.frame.xyVector   FALSE registered S3method as.data.frame FALSE
# asVector.xyVector        FALSE registered S3method      asVector FALSE
# plot.xyVector            FALSE registered S3method          plot FALSE

The examples in Chapter 43

library(groupedHyperframe)
search path & loadedNamespaces on author’s computer
search()
#  [1] ".GlobalEnv"                "package:groupedHyperframe" "package:stats"             "package:graphics"          "package:grDevices"         "package:utils"             "package:datasets"         
#  [8] "package:methods"           "Autoloads"                 "package:base"
loadedNamespaces() |> sort.int()
#  [1] "abind"             "base"              "cli"               "cluster"           "codetools"         "compiler"          "datasets"          "deldir"            "digest"           
# [10] "doParallel"        "dplyr"             "evaluate"          "farver"            "fastmap"           "fastmatrix"        "foreach"           "generics"          "geomtextpath"     
# [19] "GET"               "ggplot2"           "glue"              "goftest"           "graphics"          "grDevices"         "grid"              "gridExtra"         "groupedHyperframe"
# [28] "gtable"            "htmltools"         "htmlwidgets"       "iterators"         "jsonlite"          "knitr"             "lattice"           "lifecycle"         "magrittr"         
# [37] "Matrix"            "matrixStats"       "methods"           "nlme"              "otel"              "parallel"          "patchwork"         "pillar"            "pkgconfig"        
# [46] "polyclip"          "pracma"            "R6"                "RColorBrewer"      "rlang"             "rmarkdown"         "rstudioapi"        "S7"                "scales"           
# [55] "SpatialPack"       "spatstat.data"     "spatstat.explore"  "spatstat.geom"     "spatstat.random"   "spatstat.sparse"   "spatstat.univar"   "spatstat.utils"    "splines"          
# [64] "stats"             "survival"          "systemfonts"       "tensor"            "textshaping"       "tibble"            "tidyselect"        "tools"             "utils"            
# [73] "vctrs"             "viridisLite"       "xfun"              "yaml"

Table 43.1 summarizes the S3 methods for the class 'xyVector' in package groupedHyperframe (v0.3.4),

Table 43.1: S3 methods groupedHyperframe::*.xyVector (v0.3.4)
visible from generic isS4
visualize_vtrapz.xyVector TRUE groupedHyperframe groupedHyperframe::visualize_vtrapz FALSE

43.1 Cumulative Average Vertical Height of Trapzoidal Integration

The S3 method visualize_vtrapz.xyVector() (Section 10.3, Table 10.2) is

  • a simple wrapper of the S3 method visualize_vtrapz.numeric();
  • the workhorse function of the S3 method visualize_vtrapz.spline().

Example(s) of the S3 method visualize_vtrapz.xyVector() are Listing 10.9.