Hi, I'm trying to create an oncoPrint with the rownames italicized and the percentage of alterations listed to the left. I define alter_fun_list as such;
#Specify vectors
alter_fun_list = list(
Yes = function(x, y, w, h) {
grid.rect(x, y, w-unit(0.5, "mm"), h-unit(0.5, "mm"), gp = gpar(fill = "orangered1", col = NA))
},
No = function(x, y, w, h) {
grid.rect(x, y, w-unit(0.5, "mm"), h-unit(0.5, "mm"), gp = gpar(fill = "gray70", col = NA))
}
)
col = c(Yes = "orangered1", No = "gray70")
#Specify vectors
alter_fun_list = list(
Yes = function(x, y, w, h) {
grid.rect(x, y, w-unit(0.5, "mm"), h-unit(0.5, "mm"), gp = gpar(fill = "orangered1", col = NA))
},
No = function(x, y, w, h) {
grid.rect(x, y, w-unit(0.5, "mm"), h-unit(0.5, "mm"), gp = gpar(fill = "gray70", col = NA))
}
)
col = c(Yes = "orangered1", No = "gray70")
And yet, I always end up with all the percentages showing as "100%" and none of the rownames are in italics. I've also tried using fontface = 3, but this also doesn't work.
Strangely, I am able to modify the font size with the row_names_gp argument, but not the fontface (the only one I want...)
Hi, I'm trying to create an oncoPrint with the rownames italicized and the percentage of alterations listed to the left. I define alter_fun_list as such;
then I pass this into oncoPrint as such:
And yet, I always end up with all the percentages showing as "100%" and none of the rownames are in italics. I've also tried using fontface = 3, but this also doesn't work.
Strangely, I am able to modify the font size with the row_names_gp argument, but not the fontface (the only one I want...)