如何在 R 中的 circlize chordDiagram 上更改标签字体大小
How to change label fontsize on circlize chordDiagram in R
我有以下矩阵:
> circ_mat
N chr Y N LG1 N LG2 N PA N chr X N other
chr X 1546 128758 109464 71862 6926164 524087
PA 17415 140985 190831 7156005 145783 953412
chr 2 73977 157666 6588917 151092 137082 1027603
chr 1 17258 4552095 1414285 184986 70962 541434
chr Y 39822 921 12621 1688 4811 39199
并生成和弦图如下:
circos.clear()
circos.par(start.degree = 90, clock.wise = FALSE)
chordDiagram(circ_mat, annotationTrack = c("name", "grid"),
order = c("chr Y", "chr X", "chr 1", "chr 2", "PA", "N other", "N PA", "N LG2", "N LG1", "N chr X", "N chr Y"))
制作附图。我的问题是:如何使所有标签 "chr X"、"chr Y" 等变大?
您可以在调用 chordDiagram
之前指定 par
设置
par(cex = 3, mar = c(0, 0, 0, 0))
我有以下矩阵:
> circ_mat
N chr Y N LG1 N LG2 N PA N chr X N other
chr X 1546 128758 109464 71862 6926164 524087
PA 17415 140985 190831 7156005 145783 953412
chr 2 73977 157666 6588917 151092 137082 1027603
chr 1 17258 4552095 1414285 184986 70962 541434
chr Y 39822 921 12621 1688 4811 39199
并生成和弦图如下:
circos.clear()
circos.par(start.degree = 90, clock.wise = FALSE)
chordDiagram(circ_mat, annotationTrack = c("name", "grid"),
order = c("chr Y", "chr X", "chr 1", "chr 2", "PA", "N other", "N PA", "N LG2", "N LG1", "N chr X", "N chr Y"))
制作附图。我的问题是:如何使所有标签 "chr X"、"chr Y" 等变大?
您可以在调用 chordDiagram
par
设置
par(cex = 3, mar = c(0, 0, 0, 0))