CircosLegend {interacCircos}R Documentation

LEGEND module

Description

Simple legend annotation displayed in the visualization

Usage

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

The coordinates if legend

title

The title for legend

size

Font size for title

weight

Font weight for title. Should be either "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

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))


[Package interacCircos version 1.3.0 Index]