R/genCov_assign_ggplotGrob_height.R

Defines functions genCov_assign_ggplotGrob_height

#' assign ggplotGrob height
#'
#' assign height of ggplotGrob object
#' @name genCov_assign_ggplotGrob_height
#' @param x ggplotGrob object
#' @param max_height grob object specifying width to reassign ggplotGrob with
#' @return ggplotGrob
#' @noRd

genCov_assign_ggplotGrob_height <- function(x, max_height)
{
  # Assign a max width to ggplotGrob
    x$heights[2:5] <- as.list(max_height)
    return(x)
}

Try the GenVisR package in your browser

Any scripts or data that you put into this service are public.

GenVisR documentation built on Dec. 28, 2020, 2 a.m.