plot_indices: Plot Indices of the Current Plot

View source: R/tools.R

plot_indicesR Documentation

Plot Indices of the Current Plot

Description

Determining the indices of the x and y variables of the current plot

Usage

plot_indices(zargs)

Arguments

zargs

argument list as passed from zenplot(). This must at least contain vars and num; see zenplot() for an explanation of these variables..

Details

This is an auxiliary function useful, for example, when writing user-provided 1d and 2d plot functions.

Value

A numeric(2) containing the indices of the x and y variables to be plotted in the current plot (the plot with number num). If the current plot is a 2d plot, the same variable is used twice.

Note

This is exported so that one doesn't always have to figure out whether the variables (axes) in the current plot need to be switched manually.

Author(s)

Marius Hofert

See Also

Other tools for constructing your own plot1d and plot2d functions: burst_aux(), burst(), check_zargs(), extract_1d(), extract_2d()


zenplots documentation built on Nov. 8, 2023, 1:10 a.m.