This is my situation:
library(UpSetR)
movies <- read.csv(system.file("extdata", "movies.csv", package = "UpSetR"), header = TRUE, sep = ";")
upset(movies, sets = c("Action", "Adventure", "Comedy", "Drama", "Mystery", "Thriller", "Romance", "War", "Western"),
order.by = "freq")
I would like to improve the plot by removing variables (genres) that are displayed alone, without any intersections with other variables.
How can I modify the code to remove these isolated variables as specified below?