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
}

Try the gtrellis package in your browser

Any scripts or data that you put into this service are public.

gtrellis documentation built on Nov. 8, 2020, 7:50 p.m.