reverse.circlize.RdConvert to data coordinate system
reverse.circlize( x, y, sector.index = get.current.sector.index(), track.index = get.current.track.index())
| x | degree values. The value can also be a two-column matrix/data frame if you put x and y data points into one variable. |
|---|---|
| y | distance to the circle center (the radius) |
| sector.index | Index for the sector where the data coordinate is used |
| track.index | Index for the track where the data coordinate is used |
This is the reverse function of circlize. It transform data points from polar coordinate system to a specified data coordinate system.
A matrix with two columns (x and y)
pdf(NULL) sectors = letters[1:4] circos.initialize(sectors, xlim = c(0, 1)) circos.trackPlotRegion(ylim = c(0, 1)) reverse.circlize(c(30, 60), c(0.9, 0.8))#> x y #> [1,] 0.6781609 0.56 #> [2,] 0.3333333 -0.04#> x y #> [1,] 0.6781609 0.56 #> [2,] 0.3333333 -0.04#> x y #> [1,] 3.781609 0.56 #> [2,] 3.436782 -0.04circos.clear() dev.off()#> pdf #> 2