I have the following code:
library(UpSetR)
listInput <- list(one = c(1, 2, 3, 5, 7, 8, 11, 12, 13),
two = c(1, 2, 4, 5, 10),
three = c(1, 5, 6, 7, 8, 9, 10, 12, 13))
upset(fromList(listInput))
which produces this plot:
As you can see currently the barplot on the left is ordered according to size.
I'd like to order it from top to bottom as: three, two, one
.
How can I achieve that?
You can manually order the sets by inputting them manually to
set
and settingkeep.order=TRUE