Add lines to the plotting regions in a same track
circos.trackLines(
factors,
x, y,
track.index = get.cell.meta.data("track.index"),
col = par("col"),
lwd = par("lwd"),
lty = par("lty"),
type = "l",
straight = FALSE,
area = FALSE,
area.baseline = NULL,
border = "black",
baseline = "bottom",
pt.col = par("col"),
cex = par("cex"),
pch = par("pch"))
A factor
or a character vector which represents the categories of data
Data points on x-axis
Data points on y-axis
Index for the track
Line color
line width
line style
line type, similar as type
argument in lines
, but only in c("l", "o", "h", "s")
whether draw straight lines between points
whether to fill the area below the lines. If it is set to TRUE
, col
controls the filled color in the area and border
controls the color of the line.
deprecated, use baseline
instead.
the base line to draw area, pass to circos.lines
.
color for border of the area
if type
is "o", points color
if type
is "o", points size
if type
is "o", points type
The function adds lines in multiple cells by first splitting data into several parts in which
each part corresponds to one factor (sector index) and then add lines in cells by calling circos.lines
.
This function can be replaced by a for
loop containing circos.lines
.
# NOT RUN {
# There is no example
NULL
# }
Run the code above in your browser using DataLab