Skip to content

Commit b8c9124

Browse files
committed
changed (multi|ez)heat height & width defaults
1 parent bb6e044 commit b8c9124

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ezlimmaplot
22
Title: Bioinformatics plots using limma and ggplot2, some from output of ezlimma
3-
Version: 0.0.4.9000
3+
Version: 0.0.4.9001
44
Authors@R: c(person("Jonathan", "Dreyfuss", role = c("aut", "cre"), email = "jdreyf@bu.edu"),
55
person("Hui", "Pan", role = "aut"),
66
person("Grace", "Daher", role="ctb"))

R/ezheat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ezheat <- function(object, pheno.df=NULL, labrows=rownames(object), labcols=coln
5454
color.v=NULL, unique.rows=FALSE, only.labrows=FALSE, ntop=NULL, stat.tab = NULL,
5555
cutoff = 0.05, reorder_rows=FALSE, reorder_cols=FALSE, gaps_row = NULL, gaps_col = NULL,
5656
annotation_row = NA, annotation_colors = NA, angle_col=c("270", "0", "45", "90", "315"),
57-
fontsize_row=10, fontsize_col=10, na.lab=c("---", ""), plot=TRUE, width=NA, height=NA, verbose=FALSE){
57+
fontsize_row=10, fontsize_col=10, na.lab=c("---", ""), plot=TRUE, width=7, height=7, verbose=FALSE){
5858
angle_col <- match.arg(angle_col)
5959
if (!is.matrix(object)) object <- data.matrix(object)
6060
stopifnot(sum(is.na(object)) == 0, sc %in% c("ctr", "z", "none"), is.na(clip) | (length(clip)==1 && clip > 0),

R/multi_heat.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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){

man/ezheat.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/multi_heat.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)