GE_ROUND_CAP {RGraphicsDevice}R Documentation

Symbolic Constants for line endings and line joins

Description

These R values are symbolic constants that provide conceptual names for specific values used in C code. These control the appearance of the join between two lines rendered on a graphics device and also how the end of a line appears.

These symbolic constants correspond to enumerated constants in C code.

Usage

GE_BEVEL_JOIN

Format

These are objects of class R_GE_lineend or R_GE_linejoin.

Source

The R Graphics Engine code.

Examples

  line = function(x1, y1, x2, y2, gcontext, dev) {
           # Use the value
      if(gcontext@lend == GE_ROUND_CAP) {
         
      } else if(gcontext@lend == GE_BUTT_CAP) {

      } else if(gcontext@lend == GE_SQUARE_CAP) {

      }

          # Use the name.
      switch(names(gcontext@ljoin),
             "GE_BEVEL_JOIN" = "bevel",
             "GE_MITRE_JOIN" = "mitre",
             "GE_ROUND_JOIN" = "round")
  }

[Package RGraphicsDevice version 0.2-0 Index]