@@ -16,7 +16,7 @@ multi_heat <- function(tab, object, pheno.df=NULL, labrows=rownames(object), lab
1616 main = " Log2 Expression" , name = " heats" , sc = " ctr" , clip = NA , color.v = NULL ,
1717 unique.rows = FALSE , only.labrows = FALSE , ntop = 50 , stat.tab = NULL ,
1818 cutoff = 0.05 , reorder_rows = TRUE , reorder_cols = FALSE , fontsize_row = 10 , fontsize_col = 10 ,
19- na.lab = c(" ---" , " " ), plot = TRUE , width = NA , height = NA , verbose = FALSE ){
19+ na.lab = c(" ---" , " " ), plot = TRUE , width = 7 , height = 7 , verbose = FALSE ){
2020 if (length(labrows )== 1 ) labrows <- rep(x = labrows , nrow(object ))
2121 stopifnot(length(labrows )== nrow(object ), names(labrows )== rownames(object ))
2222 if (any(labrows != rownames(object ))) stopifnot(! is.null(names(labrows )))
@@ -43,11 +43,11 @@ multi_heat <- function(tab, object, pheno.df=NULL, labrows=rownames(object), lab
4343 color.v = color.v , unique.rows = unique.rows , only.labrows = only.labrows , ntop = ntop ,
4444 stat.tab = stat.tab , cutoff = cutoff , labcols = labcols , reorder_rows = reorder_rows ,
4545 reorder_cols = reorder_cols , fontsize_row = fontsize_row , fontsize_col = fontsize_col ,
46- na.lab = na.lab , plot = FALSE , width = width , height = height , verbose = verbose , name = NA )
46+ na.lab = na.lab , plot = FALSE , verbose = verbose , name = NA )
4747 }
4848 if (plot ){
4949 if (! is.na(name )) {
50- grDevices :: pdf(paste0(name , " .pdf" ))
50+ grDevices :: pdf(paste0(name , " .pdf" ), width = width , height = height )
5151 on.exit(grDevices :: dev.off())
5252 }
5353 for (contr in contr.names ){
0 commit comments