The R Project SVN R

Rev

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

Rev 59039 Rev 61433
Line 11... Line 11...
11
  These functions create and draw line segments.
11
  These functions create and draw line segments.
12
}
12
}
13
\usage{
13
\usage{
14
grid.segments(x0 = unit(0, "npc"), y0 = unit(0, "npc"),
14
grid.segments(x0 = unit(0, "npc"), y0 = unit(0, "npc"),
15
              x1 = unit(1, "npc"), y1 = unit(1, "npc"),
15
              x1 = unit(1, "npc"), y1 = unit(1, "npc"),
16
              default.units = "npc", 
16
              default.units = "npc",
17
              arrow = NULL,
17
              arrow = NULL,
18
              name = NULL, gp = gpar(), draw = TRUE, vp = NULL)
18
              name = NULL, gp = gpar(), draw = TRUE, vp = NULL)
19
segmentsGrob(x0 = unit(0, "npc"), y0 = unit(0, "npc"),
19
segmentsGrob(x0 = unit(0, "npc"), y0 = unit(0, "npc"),
20
              x1 = unit(1, "npc"), y1 = unit(1, "npc"),
20
              x1 = unit(1, "npc"), y1 = unit(1, "npc"),
21
              default.units = "npc", 
21
              default.units = "npc",
22
              arrow = NULL, name = NULL, gp = gpar(), vp = NULL)
22
              arrow = NULL, name = NULL, gp = gpar(), vp = NULL)
23
}
23
}
24
\arguments{
24
\arguments{
25
  \item{x0}{ Numeric indicating the starting x-values of the line segments. }
25
  \item{x0}{ Numeric indicating the starting x-values of the line segments. }
26
  \item{y0}{ Numeric indicating the starting y-values of the line
26
  \item{y0}{ Numeric indicating the starting y-values of the line
Line 39... Line 39...
39
}
39
}
40
\details{
40
\details{
41
  Both functions create a segments grob (a graphical object describing
41
  Both functions create a segments grob (a graphical object describing
42
  segments), but only \code{grid.segments}
42
  segments), but only \code{grid.segments}
43
  draws the segments (and then only if \code{draw} is \code{TRUE}).
43
  draws the segments (and then only if \code{draw} is \code{TRUE}).
44
  
44
 
45
}
45
}
46
\value{
46
\value{
47
  A segments grob.  \code{grid.segments} returns the value invisibly.
47
  A segments grob.  \code{grid.segments} returns the value invisibly.
48
}
48
}
49
\author{Paul Murrell}
49
\author{Paul Murrell}