I am trying to change the set name labels in my UpsetR plot (using Upset function) to be a string of multiple words. Instead of 'A', 'B', 'C' as the set labels I want to have the set labels appear as 'A Description', 'B Description', 'C Description'. I do not want periods or underscores between the words.
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))
The actual result is that my sets on my image are labeled A.Description, B.Description and C.Description. However, I do not want the periods between the words and instead want a space. Any ideas to change the names of the Set Name Labels just for the purposes of the plot? Thank you!