R/emptyMainLeftAxisLeftStripBottomLegend.R

Defines functions emptyMainLeftAxisLeftStripBottomLegend

Documented in emptyMainLeftAxisLeftStripBottomLegend

emptyMainLeftAxisLeftStripBottomLegend <- function(x) {
  ## main title
  x <- update(x, main=" ")
  ## subtitle
  if (!is.null(x$sub)) x <- update(x, sub=" ")
  ## left tick labels
  if (is.list(x$y.limits))
    x$y.limits <- lapply(x$y.limits,
                         function(x) {
                           x[] <- ""
                           x
                         }
                         )
  else
    x$y.limits[] <- " "
  ## left strip
  x$par.strip.text$lines <- 0
  ## bottom legend
  x$legend$bottom$args$text[] <- " "
  x$legend$bottom$args$rect[] <- 0
  if (!is.null(x$legend$bottom$args$title))
    x$legend$bottom$args$title <- " "
  x
}

## CountRev <- emptyMainLeftAxisLeftStripBottomLegend(CountsPlot)

## source("c:/HOME/rmh/HH-R.package/HH/R/emptyMainLeftAxisLeftStripBottomLegend.R")

Try the HH package in your browser

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

HH documentation built on Aug. 9, 2022, 5:08 p.m.