The R Project SVN R

Rev

Rev 74613 | Rev 84002 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 74613 Rev 74856
Line 62... Line 62...
62
    \code{par("las")} determines the adjustment.  For strings plotted
62
    \code{par("las")} determines the adjustment.  For strings plotted
63
    perpendicular to the axis the default is to centre the string.}
63
    perpendicular to the axis the default is to centre the string.}
64
  \item{gap.axis}{an optional (typically non-negative) numeric factor to
64
  \item{gap.axis}{an optional (typically non-negative) numeric factor to
65
    be multiplied with the size of an \sQuote{m} to determine the
65
    be multiplied with the size of an \sQuote{m} to determine the
66
    minimal gap between labels that are drawn, see \sQuote{Details}.
66
    minimal gap between labels that are drawn, see \sQuote{Details}.
67
    The default, \code{NA}, corresponds to \code{1} when tick labels drawn
67
    The default, \code{NA}, corresponds to \code{1} for tick labels drawn
68
    \emph{parallel} to the axis and \code{0.25} otherwise, i.e., the
68
    \emph{parallel} to the axis and \code{0.25} otherwise, i.e., the
69
    default is equivalent to \preformatted{  perpendicular <- function(side, las) {
69
    default is equivalent to \preformatted{  perpendicular <- function(side, las) {
70
    is.x <- (side \%\% 2 == 1) # is horizontal x-axis
70
    is.x <- (side \%\% 2 == 1) # is horizontal x-axis
71
    ( is.x && (las \%in\% 2:3)) ||
71
    ( is.x && (las \%in\% 2:3)) ||
72
    (!is.x && (las \%in\% 1:2))
72
    (!is.x && (las \%in\% 1:2))
73
  }
73
  }
74
  gap.axis <- if(perpendicular(side, las)) 0.25 else 1}
74
  gap.axis <- if(perpendicular(side, las)) 0.25 else 1}% end{pre..}
-
 
75
 
-
 
76
    \code{gap.axis} may typically be relevant when \code{at = ..}
-
 
77
    tick-mark positions are specified explicitly.
75
  }
78
  }
76
  \item{\dots}{other \link{graphical parameters} may also be passed as
79
  \item{\dots}{other \link{graphical parameters} may also be passed as
77
    arguments to this function, particularly, \code{cex.axis}, \code{col.axis}
80
    arguments to this function, particularly, \code{cex.axis}, \code{col.axis}
78
    and \code{font.axis} for axis annotation, i.e. tick labels, \code{mgp}
81
    and \code{font.axis} for axis annotation, i.e. tick labels, \code{mgp}
79
    and \code{xaxp} or \code{yaxp} for positioning, \code{tck} or
82
    and \code{xaxp} or \code{yaxp} for positioning, \code{tck} or