From 7a9d4d662aaeb833ad73bf2921e3af59fd38aecb Mon Sep 17 00:00:00 2001 From: Pavel Mazin Date: Fri, 10 Jan 2025 10:51:23 +0000 Subject: [PATCH] add axis lab sized to imageWithText --- R/general.purpuse.utilities.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/R/general.purpuse.utilities.R b/R/general.purpuse.utilities.R index 2f3e2fe..5ef28a2 100644 --- a/R/general.purpuse.utilities.R +++ b/R/general.purpuse.utilities.R @@ -403,10 +403,10 @@ isColors <- function(x) { #' @param text.xadj text adjastment by x #' @param colAnns,rowAnns list (or matrix of columns) of column (row) annotation to be shown by color #' @param colAnnsCols,rowAnnsCols - colors to be used for col (row) annotation. Defined by char2color if null. -#' @param legend.cex.at,legend.col.at values to be used in legend, set both to have two independent legends for size and colour -#' @param legend.cex.title,legend.col.title titles of legends +#' @param col col for image #' @param rowAnnWidth,colAnnWidth - size of colour annotations as fraction of plot area #' @param annSpacer - spacer between heatmap and annotation as fraction of plot area +#' @param cex.axis.x,cex.axis.y - sizes of x and y axis labels #' @param ... other options to be supplied to image #' #' @export @@ -455,7 +455,7 @@ imageWithText = function(d,t=NULL,digits=2,text.col=NULL,xaxlab=rownames(d),yaxl } if(!is.null(xaxlab)){ - axis(1,pars$x,xaxlab,las=las) + axis(1,pars$x,xaxlab,las=las,cex.axis = cex.axis.x) } if(!is.null(rowAnns)){ @@ -467,7 +467,7 @@ imageWithText = function(d,t=NULL,digits=2,text.col=NULL,xaxlab=rownames(d),yaxl plotColorAnn(pars$y,rowAnns,cex=rowAnnWidth,horis=FALSE,col=rowAnnCols,spacer = annSpacer) } if(!is.null(yaxlab)) - axis(2,pars$y,yaxlab,las=las) + axis(2,pars$y,yaxlab,las=las,cex.axis = cex.axis.y) par(mgp=mgp) }