How to input margin to UpsetR figure
0
1
Entering edit mode
16 months ago
Aki ▴ 20

I made upset plot and add a margin with par() , but par() did not work. I used code like below. Could you some give advices?

p_upset <- 
  upset(fromList(data),
        order.by = "freq",
        keep.order = TRUE,
        point.size = 5, line.size = 2,
        text.scale = c(2, 2, 2, 2, 2, 2), 
        sets.bar.color=c("#BF3131","#BF3131","#83AAF1","#83AAF1"),
        matrix.color = c(rep("orange",8),rep("black",16))
  )
par("mar" = c(2, 2, 2, 2),
    "oma" = c(2, 2,2, 2)) 
p_upset
R upsetr • 595 views
ADD COMMENT
0
Entering edit mode

What is the issue with the plot you are getting? Why do you want to add margins? If I am not wrong upset plot returns Grob object. If the problem is with rendering a plot, why don't you directly save it using ggsave() OR pdf() OR png() instead of rendering it in Rstudio/IDE?

ADD REPLY

Login before adding your answer.

Traffic: 1079 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6