CircosLegend {interacCircos} | R Documentation |
Simple legend annotation displayed in the visualization
CircosLegend( modulename, x = 20, y = 20, title = "legend", size = 6, weight = "normal", GapBetweenGraphicText = 5, GapBetweenLines = 20, data, ... )
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 |
The module tracks for legend modules.
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))