r - What is the use of 'length.out' and 'along.with' arguments in gslider()? -
what use of length.out
, along.with
arguments in gslider() gwidgets2? in ?gslider
can see (the rather counter-intuitive):
by step size if not specified length.out in place of along.with in place of length.out
does imply 3 arguments synonyms?
look @ source code.
if (!is.null(length.out)) { <- (to - from)/(length.out[1] - 1) }
if present, length.out = 5
, sets by
(to - from) / 4
. latter,
if (!missing(along.with)) { length.out <- length(along.with) }
it allows to, e.g., pass list of length n
, length.out
n
. won't speak usefulness of these arguments guess author must have thought they'd come in handy.
Comments
Post a Comment