I am attempting to make a chord diagram of a fairly large 18*65 table (not every cell has a value).
I have generated the image I want but the quallity of it is nothing like what is shown on the github seen below:
I figure maybe the number of cells needing to be plotted may cause problems but otherwise I am not sure why i get such a difference:
circos.par(gap.after = c(rep(2, ncol(chord_data)-1), 10, rep(2, 8-1), 5, rep(2, 10-1), 5, rep(2, 5-1), 5, rep(2, 3-1), 5, rep(2, 1), 5, rep(2, 12-1), 5, rep(2, 10-1), 5, rep(2, 6-1), 5, rep(2, 7-1), rep(2, 3-1), 10))
png(file = "antismash_by_type.png", width = 800, height = 800)
chordDiagram(chord_data,
grid.col = grid.col,
order = order,
annotationTrack = "grid",
preAllocateTracks = 1)
circos.track(track.index = 1, panel.fun = function(x, y) {
circos.text(CELL_META$xcenter, CELL_META$ylim[1], CELL_META$sector.index,
facing = "clockwise", niceFacing = TRUE, adj = c(0, 0.5))
}, bg.border = NA)
dev.off()
Secondly my chords do not appear to be scaling to the value of the cell which ranges from 0-100 and from what I read this is meant to occure by default but does not appear to be.