The R Project SVN R

Rev

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

Rev 26693 Rev 26710
Line 38... Line 38...
38
    \item{\code{"cicero"}}{Cicero.  1 cc = 12 dd.}
38
    \item{\code{"cicero"}}{Cicero.  1 cc = 12 dd.}
39
    \item{\code{"scaledpts"}}{Scaled Points.  65536 sp = 1 pt.}
39
    \item{\code{"scaledpts"}}{Scaled Points.  65536 sp = 1 pt.}
40
    \item{\code{"lines"}}{Lines of text.  Locations and dimensions
40
    \item{\code{"lines"}}{Lines of text.  Locations and dimensions
41
      are in terms of multiples of the default text size of the viewport
41
      are in terms of multiples of the default text size of the viewport
42
      (as specified by the viewport's \code{fontsize} and \code{lineheight}).}
42
      (as specified by the viewport's \code{fontsize} and \code{lineheight}).}
43
    \item{\code{"mylines"}}{Same as \code{"lines"}, except will be
-
 
44
      influenced by grob's own gpar settings.}
-
 
45
    \item{\code{"char"}}{Multiples of nominal font height of the
43
    \item{\code{"char"}}{Multiples of nominal font height of the
46
      viewport (as specified by the viewport's \code{fontsize}).}
44
      viewport (as specified by the viewport's \code{fontsize}).}
47
    \item{\code{"mychar"}}{Same as \code{"char"}, except will be
-
 
48
      influenced by grob's own gpar settings.}
-
 
49
    \item{\code{"native"}}{Locations and dimensions are relative to
45
    \item{\code{"native"}}{Locations and dimensions are relative to
50
      the viewport's \code{xscale} and \code{yscale}.}
46
      the viewport's \code{xscale} and \code{yscale}.}
51
    \item{\code{"snpc"}}{Square Normalised Parent Coordinates.
47
    \item{\code{"snpc"}}{Square Normalised Parent Coordinates.
52
      Same as Normalised Parent Coordinates, except gives the same answer for
48
      Same as Normalised Parent Coordinates, except gives the same answer for
53
      horizontal and vertical locations/dimensions.  It uses the
49
      horizontal and vertical locations/dimensions.  It uses the
Line 91... Line 87...
91
 
87
 
92
  There is also a special function \code{unit.c} for concatenating
88
  There is also a special function \code{unit.c} for concatenating
93
  several unit objects.
89
  several unit objects.
94
 
90
 
95
  The \code{c} function will not give the right answer.
91
  The \code{c} function will not give the right answer.
-
 
92
 
-
 
93
  There used to be \code{"mylines"}, \code{"mychar"}, \code{"mystrwidth"},
-
 
94
  \code{"mystrheight"} units.  These will still be accepted, but
-
 
95
  work exactly the same as
-
 
96
  \code{"lines"}, \code{"char"}, \code{"strwidth"},
-
 
97
  \code{"strheight"}.
96
}
98
}
97
\value{
99
\value{
98
  An object of class \code{"unit"}. 
100
  An object of class \code{"unit"}. 
99
}
101
}
100
\author{Paul Murrell}
102
\author{Paul Murrell}