R/global.R

Defines functions increase_plot_index get_plot_index

INDEX_ENV = new.env()

INDEX_ENV$I_PLOT = 0

get_plot_index = function() {
	paste0("plot", INDEX_ENV$I_PLOT)
}

increase_plot_index = function() {
	INDEX_ENV$I_PLOT = INDEX_ENV$I_PLOT + 1
}
jokergoo/gtrellis documentation built on Feb. 27, 2024, 6:44 p.m.