set.tracking.nums: Set Figure/Table Numbers

View source: R/set_tracking_nums.R

set.tracking.numsR Documentation

Set Figure/Table Numbers

Description

Set figure, table, supplemental figure, and/or supplemental table numbers to a specific value

Usage

set.tracking.nums(
  type = c("figure", "table", "supplemental figure", "supplemental table"),
  set.to = 0
)

Arguments

type

A character vector indicating whether you want figure, table, supplemental figure, and/or supplemental table numbers set to specific values. Defaults to all four: c("figure", "table", "supplmental figure", "supplemental table")

set.to

A positive integer vector giving the the new values you want set for figure/table numbers. Must be in same order as the type vector, or a single value to set them all to. Defaults to 0.

Examples

data(example_data)

plot(example.data$X, example.data$Y, sub = figure.caption("This is a figure"))

set.tracking.nums(type = "figure", set.to = 3)

plot(example.data$X, example.data$Y, sub = figure.caption("This is another figure"))

kstagaman/autoNumCaptions documentation built on Sept. 13, 2022, 12:38 p.m.