Learn R Programming

interacCircos (version 1.0.0)

CircosLegend: Create a LEGEND module to a moduleList

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

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

Run this code
# NOT RUN {
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))

# }

Run the code above in your browser using DataLab