Displaying 1 result from an estimated 1 matches for "xyscale".
Did you mean:
xscale
2008 Jul 21
0
xyplot: distance between axis and axis-label gets wrong
...oid. Here is an example:
##
## functions for nice log-axis
##
logTicks <- function (lim, loc = c(1, 5), base=10)
{
ii <-floor(log(range(lim), base)) + c(-1, 2)
main <- base^(ii[1]:ii[2])
r <- as.numeric(outer(loc, main, "*"))
r[lim[1] <= r & r <= lim[2]]
}
xyscale.components.log <- function(lim, ..., side=c("bottom"), base=10,
majorTickFac=1.5, loc=c(1,5)) {
if(side %in% c("left", "right"))
ans <- yscale.components.default(lim = lim, ...)
if(side %in% c("bottom", "top"))
ans <- xscale.com...