Learn R Programming

circlize (version 0.4.16)

Circular Visualization

Description

Circular layout is an efficient way for the visualization of huge amounts of information. Here this package provides an implementation of circular layout generation in R as well as an enhancement of available software. The flexibility of the package is based on the usage of low-level graphics functions such that self-defined high-level graphics can be easily implemented by users for specific purposes. Together with the seamless connection between the powerful computational and visual environment in R, it gives users more convenience and freedom to design figures for better understanding complex patterns behind multiple dimensional data. The package is described in Gu et al. 2014 .

Copy Link

Version

Install

install.packages('circlize')

Monthly Downloads

34,353

Version

0.4.16

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

February 20th, 2024

Functions in circlize (0.4.16)

chordDiagramFromMatrix

Plot Chord Diagram from an adjacency matrix
adjacencyList2Matrix

Convert adjacency list to an adjacency matrix
arrange_links_evenly

Arrange links evenly on each sector
CELL_META

Easy way to get meta data in the current cell
add_transparency

Add transparency to colors
circos.axis

Draw x-axis
chordDiagram

Plot Chord Diagram
circos.arrow

Draw arrow which is paralle to the circle
circos.dendrogram

Add circular dendrograms
adjacencyMatrix2List

Convert adjacency matrix to an adjacency list
$.CELL_META

Easy to way to get meta data in the current cell
chordDiagramFromDataFrame

Plot Chord Diagram from a data frame
circos.genomicAxis

Add genomic axes
circos.clear

Reset the circular layout parameters
circos.barplot

Draw barplots
circos.genomicPoints

Add points to a plotting region, specifically for genomic graphics
circos.genomicLink

Add links from two sets of genomic positions
circos.genomicDensity

Calculate and add genomic density track
circlize-package

Circular visualization in R
circos.connect

Draw connecting lines/ribons between two sets of points
circos.boxplot

Draw boxplots
circos.genomicLabels

Add labels to specified genomic regions
circos.genomicRect

Draw rectangle-like grid, specifically for genomic graphics
circos.genomicText

Draw text in a cell, specifically for genomic graphics
circos.genomicIdeogram

Add an ideogram track
circos.genomicInitialize

Initialize circular plot with any genomic data
circos.genomicLines

Add lines to a plotting region, specifically for genomic graphics
circos.initialize

Initialize the circular layout
circos.genomicPosTransformLines

Add genomic position transformation lines between tracks
circos.genomicTrack

Create a track for genomic graphics
circlize

Convert to polar coordinate system
circos.genomicRainfall

Genomic rainfall plot
circos.genomicTrackPlotRegion

Create a track for genomic graphics
circos.initializeCircularGenome

Initialize a layout for circular genome
circos.points

Add points to a plotting region
circos.polygon

Draw polygon
circos.nested

Nested zooming with two circular plots
circos.heatmap.link

Draw a link between two matrix rows in the circular heatmap
circos.text

Draw text in a cell
circos.heatmap

Make circular heatmaps
circos.labels

Add a label track
circos.info

Get information of the circular plot
circos.link

Draw links between points or/and intervals
circos.lines

Add lines to the plotting region
circos.xaxis

Draw x-axis
circos.heatmap.initialize

Initialize circular heatmaps
circos.triangle

Draw triangles
circos.initializeWithIdeogram

Initialize the circular layout with an ideogram
colorRamp2

Color interpolation
circos.trackPoints

Add points to the plotting regions in a same track
circos.par

Parameters for the circular layout
circos.segments

Draw segments through pairwise of points
circos.yaxis

Draw y-axis
circos.genomicHeatmap

Add heatmaps for selected regions
convert_length

Convert units
highlight.sector

Highlight sectors and tracks
convert_x

Convert unit on x direction in data coordinate
convert_height

Convert units
genomicDensity

Calculate genomic region density
circos.raster

Add raster images
circos.rect

Draw rectangle-like grid
mm_x

Convert unit on x direction in data coordinate
cm_h

Convert units
circos.trackText

Draw text in cells among the whole track
set.current.cell

Set flag to current cell
cm_x

Convert unit on x direction in data coordinate
get.all.sector.index

Get index for all sectors
get.current.chromosome

Get current chromosome name
circos.track

Create plotting regions for a whole track
inch_h

Convert units
circos.violin

Draw violin plots
circos.trackLines

Add lines to the plotting regions in a same track
circos.updatePlotRegion

Update the plotting region in an existed cell
circos.trackPlotRegion

Create plotting regions for a whole track
circos.trackHist

Draw histogram in cells among a whole track
get.current.sector.index

Get current sector index
col2value

Transform back from colors to values
posTransform.text

Genomic position transformation function specifically for text
cm_y

Convert unit on y direction in data coordinate
inches_y

Convert unit on y direction in data coordinate
get_most_inside_radius

Get the inside radius of the most inner track
mm_y

Convert unit on y direction in data coordinate
rainfallTransform

Calculate inter-distance of genomic regions
inches_h

Convert units
fontsize

Convert fontsize to cex
inches_x

Convert unit on x direction in data coordinate
uy

Convert unit on y direction in data coordinate
get.all.track.index

Get index for all tracks
get.cell.meta.data

Get the meta data of a cell
ux

Convert unit on x direction in data coordinate
generateRandomBed

Generate random genomic data
rand_color

Generate random colors
reverse.circlize

Convert to data coordinate system
degree

Mark the value as a degree value
draw.sector

Draw sectors or rings in a circle
mm_h

Convert units
cytoband.col

Assign colors to cytogenetic band (hg19) according to the Giemsa stain results
print.CELL_META

Print CELL_META
convert_y

Convert unit on y direction in data coordinate
names.CELL_META

Names of all meta data in the current cell
highlight.chromosome

Highlight chromosomes
read.chromInfo

Read/parse chromInfo data from a data frame/file/UCSC database
posTransform.default

Genomic position transformation function
read.cytoband

Read/parse cytoband data from a data frame/file/UCSC database
circos.update

Create plotting regions for a whole track
get.current.track.index

Get current track index
inch_x

Convert unit on x direction in data coordinate
getI

Which data that panel.fun is using
show.index

Label the sector index and the track index on each cell
inch_y

Convert unit on y direction in data coordinate
smartAlign

Adjust positions of text
set_track_gap

Set gaps between tracks
uh

Convert units
calc_gap

Calculate gaps to make two Chord diagrams in the same scale