Auxiliary function for constructing viewports for 1d and 2d (default) plots.
Arguments
- ispace
inner space (in \([0,1]\)))
- xlim
x-axis limits; if
NULL, the data limits are used.- ylim
y-axis limits; if
NULL, the data limits are used.- x
x data (only used if
is.null(xlim)); ifNULL,0:1is used.- y
y data (only used if
is.null(ylim)); ifNULL,0:1is used.- ...
additional arguments passed to the underlying
viewport().
Note
Ideas from dataViewport() and extendrange() Omitted check: if(length(ispace) != 4) ispace <- rep(ispace, length.out = 4) stopifnot(0 <= ispace, ispace <= 1)
See also
Other graphical tools:
l_ispace_config(),
na_omit_loon(),
plot_region(),
zenarrow()
