我正在尝试更改我的 UpsetR 图中的集名称标签(使用 Upset 函数),使其成为多个单词的字符串。我想让集标签显示为“A Description”、“B Description”、“C Description”,而不是“A”、“B”、“C”。我不希望单词之间有句点或下划线。
test <- upset(grouped_hot,
sets= c("A Description", "B Description","C Description", "N Description"),
nintersects = 8,
mb.ratio = c(0.6, 0.4),
sets.x.label = "Number of Patients",
sets.bar.color = "#56B4E9",
mainbar.y.label = "Number of Patients",
order.by = "freq",
empty.intersections = "on",
keep.order = FALSE,
scale.sets = "identity",
att.pos = "top",
text.scale = c(2.5,2.5,2,1.5,2.5,2.5))
实际结果是我的图像上的集合标签为A.Description、B.Description和C.Description。但是,我不想在单词之间使用句点,而是想要一个空格。有什么办法可以仅用于绘图目的更改Set Name Labels的名称吗?谢谢!