Learn R Programming

tooth (version 0.5.0)

tooth-deprecated: Deprecated functions in tooth

Description

These functions are kept for backward compatibility but will be removed in a future release. Each forwards to its renamed replacement.

Usage

build_odontograph(...)

Value

build_odontograph() returns the value of build_odontogram()

(a ggplot object, or a list of ggplots when combine = FALSE).

Arguments

...

Arguments passed on to build_odontogram().

Details

build_odontograph()

Deprecated in 0.5.0. The visualization is now consistently called an odontogram throughout the package. Use build_odontogram() instead. This wrapper forwards all arguments and is fully equivalent, but emits a deprecation warning.

Examples

Run this code
library(tibble)
d <- expand.grid(
  tooth_num = paste0(rep(c("ur", "ul", "lr", "ll"), each = 7), 1:7),
  tooth_surface = c("buc", "lin", "mes", "dis", "occ"),
  stringsAsFactors = FALSE
)
d$prop <- runif(nrow(d))
# Old name still works but warns; wrap to keep example output clean:
suppressWarnings(build_odontograph(d, teeth_per_quadrant = 7))
# Preferred:
build_odontogram(d, teeth_per_quadrant = 7)

Run the code above in your browser using DataLab