llines                package:lattice                R Documentation

_L_a_t_t_i_c_e _R_e_p_l_a_c_e_m_e_n_t_s _o_f _b_a_s_e _g_r_a_p_h_i_c_s _f_u_n_c_t_i_o_n_s

_D_e_s_c_r_i_p_t_i_o_n:

     These functions are intended to replace some commonly used base R
     graphics functions in panel functions.

_U_s_a_g_e:

     larrows(x0 = NULL, y0 = NULL, x1, y1, x2 = NULL, y2 = NULL,
             angle = 30, code = 2, length = 0.25, unit = "inches",
             col, alpha, lty, lwd, fill = NULL, ...)
     llines(x, y = NULL, type = "l", col, alpha, lty, lwd, ...)
     lplot.xy(xy, type, pch, lty, col, cex, lwd,
              font, fontfamily, fontface, col.line, alpha, fill, ...)
     lpoints(x, y = NULL, type = "p", col, pch, alpha, fill,
             font, fontfamily, fontface, cex, ...)  
     lsegments(x0, y0, x1, y1, x2, y2,
               col, alpha, lty, lwd, ...)
     ltext(x, y = NULL, labels = seq(along = x),
           col, alpha, cex, srt = 0,
           font, fontfamily, fontface,
           adj = c(0.5, 0.5), pos = NULL, offset = 0.5, ...)  
     lrect(xleft, ybottom, xright, ytop,
           x = (xleft + xright) / 2,
           y = (ybottom + ytop) / 2,
           width = xright - xleft,
           height = ytop - ybottom,
           col = "transparent",
           border = "black",
           lty = 1, lwd = 1, alpha = 1,
           just = "center",
           hjust = NULL, vjust = NULL,
           ...)
     panel.arrows(...)
     panel.lines(...)
     panel.points(...)
     panel.segments(...)
     panel.text(...)

_A_r_g_u_m_e_n_t_s:

 x, y, x0, y0, x1, y1, x2, y2, xy: locations. 'x2' and 'y2' are
          available for for S compatibility.  

length, unit: determines extent of arrow head.  'length' specifies the
          length in terms of 'unit', which can be any valid grid unit
          as long as it doesn't need a 'data' argument.  'unit'
          defaults to inches, which is the only option in the base
          version of the function, 'arrows'.  

angle, code, type, labels, srt, adj, pos, offset: arguments controlling
          behaviour.  See respective base functions for details. 

col, alpha, lty, lwd, fill, pch, cex, font, fontfamily,
fontface, col.line, border: graph
          ical parameters.  'fill' applies to points when 'pch' is in
          '21:25' and specifies the fill color, similar to the 'bg'
          argument in the base graphics function 'points'. For devices
          that support alpha-transparency, a numeric argument 'alpha'
          between 0 and 1 can controls transparency.  Be careful with
          this, since for devices that do not support
          alpha-transparency, nothing will be drawn at all if this is
          set to anything other than 0.  

xleft, ybottom, xright, ytop: see 'rect'

width, height, just, hjust, vjust: finer control over rectangles, see
          'grid.rect' 

     ...: extra arguments, passed on to lower level functions as
          appropriate.  

_D_e_t_a_i_l_s:

     These functions are meant to be grid replacements of the
     corresponding base R graphics functions, to allow existing Trellis
     code to be used with minimal modification.  The functions
     'panel.*' are essentally identical to the 'l*' versions, are
     recommended for use in new code (as opposed to ported code) as
     they have more readable names.

     See the documentation of the base functions for usage. Not all
     arguments are always supported. All these correspond to the
     default methods only. For 'ltext', only values 0, .5 and 1 for
     'adj' have any effect.

_N_o_t_e:

     There is a new 'type="H"' option wherever appropriate, which is
     similar to 'type="h"', but with horizontal lines.

_A_u_t_h_o_r(_s):

     Deepayan Sarkar Deepayan.Sarkar@R-project.org

_S_e_e _A_l_s_o:

     'points', 'lines', 'rect', 'text', 'segments', 'arrows', 'Lattice'

