Produces crown surface wedges (B/L/M/D/O) and up to four root surface
bars (RB/RL/RM/RD), plus labels, outlines, and diagonals — all as
data frames ready for ggplot2. Any surface can be excluded via the
surfaces argument.
draw_tooth(
tooth_id,
quadrant,
tooth_num,
is_upper,
surface_values,
value_col = "prop",
x_offset = 0,
y_offset = 0,
tooth_size = 1,
show_roots = TRUE,
surfaces = c("buc", "lin", "mes", "dis", "occ", "rootb", "rootl", "rootm", "rootd"),
display_label = NULL
)Named list of tibbles: crown, roots, labels, num_label, diags, outline.
Character label, e.g. "ur1".
One of "ur", "ul", "lr", "ll".
Numeric position within the quadrant.
Logical; TRUE for upper arch.
Data frame with tooth_surface and a value column.
Recognised surfaces: buc, lin, mes, dis, occ, rootb, rootl, rootm, rootd.
Name of the value column in surface_values.
Numeric offsets for positioning.
Numeric side length of the crown square (default 1).
Logical; draw root surface bars (default TRUE).
Character vector of surfaces to include. Omit any you don't want drawn.
Optional custom label for the tooth number (e.g.
FDI notation "11" instead of "ur1"). When NULL, uses tooth_id.