CircosLegend: Create a LEGEND module to a moduleList

Description Usage Arguments Value Examples

View source: R/interacCircos.R

Description

Simple legend annotation displayed in the visualization.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
CircosLegend(
  modulename,
  x = 20,
  y = 20,
  title = "legend",
  size = 6,
  weight = "normal",
  GapBetweenGraphicText = 5,
  GapBetweenLines = 20,
  data,
  ...
)

Arguments

modulename

The name of the new module.

x, y

Coordinates of the lower left corner of the annotation

title

The title for legend

size

Font size for title, with units specified (such as em or px).

weight

Font weight for title. Can be "normal", "bold", "bolder" or "lighter".

GapBetweenGraphicText

Gap between icon and text in legend.

GapBetweenLines

Gap between each two lines in legend

data

A list of legend with details including type, color, opacity, circleSize, rectSize, lineWidth, lineHeight, text, textSize and textWeight. Details can be found on document.

...

Ignored

Value

The module tracks for legend modules.

Examples

1
2
3
4
5
legend1 <- list(type= "circle", color="#1E77B4",opacity="1.0",circleSize="8",text= "C.CK", 
textSize= "14",textWeight="normal")
legend2 <- list(type= "circle", color="#AEC7E8",opacity="1.0",circleSize="8",text= "C.NPK", 
textSize= "14",textWeight="normal")
Circos(CircosLegend('legend01', title = "legend",data=list(legend1,legend2),size = 20))

interacCircos documentation built on Jan. 21, 2021, 5:10 p.m.