glyph-class {SBGNview} | R Documentation

## An object to store glyph information

### Description

An object to store glyph information

### Details

User can modify glyph objects to change the way how they are rendered. See the "glyphs.user" argument in `renderSbgn`.

### Slots

`compartment`

  A character string. The compartment this glyph belongs to.

`x,y,h,w`

  Numeric. The x,y location and hight, width of the glyph.

`id`

  A character string. The ID of the glyph (determined by the 'id' attribute in element 'glyph').

`label`

  A character string. label of the glyph. Extracted from the element 'label'.

`glyph.class`

  A character string. Class of the glyph.

`user.data`

  A numeric vector. The omics data mapped to this glyph.

`stroke.width,stroke.opacity,fill.opacity`

  Numeric. Controls glyph border width or opacity of node fill and border.

`fill.color,stroke.color`

  A character string. The fill color and stroke color of glyph.

`label_location`

  A character string. One of 'center' or 'top'. If set to 'center', the glyph label text will be displayed at the center of the glyph. If set to 'top', the label will be displayed at the top of the glyph.

`orientation`

  A character string. One of 'left','right','up','down'. This only applies to glyphs of classes 'terminal' and 'tag'. It will change the orientation of the node.

`parameters.list`

  A list. The parameters.list slot is a copy of the global.parameters.list. The global.parameters.list contains the '...' parameters passed into `SBGNview` which will be used by `renderSbgn`. By default this slot for all glyph objects in the output SBGNview object will be an empty list. You can add named elements to this slot to customize each individual glyph. For information about which parameters can be set in the parameters.list slot, see the arguments in `renderSbgn`. A customized list of glyph objects can be passed as input into SBGNview function using the ‘glyphs.user’ argument (see `renderSbgn` for more information).

`shape`

  A list. Parameters controlling how the node is rendered. Available elements can be accessed as follow: glyph@shape$stroke.color
  -Character (e.g. 'red'). The color of glyph border.
  glyph@shape$stroke.opacity
  -Numeric (e.g. 0.8). The opacity of glyph border. Must be between 0 and 1.
  glyph@shape$stroke.width
  -Numeric. The thickness of glyph border.
  glyph@shape$fill.opacity
  -Numeric. The opacity of glyph fill. Must be between 0 and 1.
  glyph@shape$fill.color
  -Numeric. The glyph fill color. Note that this will overwrite colors generated from omics data!

`text`

  A list. Parameters controlling how node label is rendered. Available elements can be accessed as follow: glyph@text$y.shift
  -Numeric. Move glyph label vertically by this value.
  glyph@text$x.shift
  -Numeric. Move glyph label horizontally by this value.
  glyph@text$color
  -A character string. The color of glyph label.
  glyph@text$font.size
  -A character string. The font size of glyph label.

[Package SBGNview version 1.8.0 Index]