forestplot (version 3.1.3)

heightDetails.xaxis: Gets the height for an x-axis object

Description

A function that gets the height of an xaxisGrob. It is for some reason not included by default in the grid-package.

Usage

# S3 method for xaxis
heightDetails(x)

Value

grid::unit A unit object

Arguments

x

The xaxisGrob object

Examples

Run this code
library(grid)
grid.newpage()
xg <- xaxisGrob(c(1:3))
convertY(grobHeight(xg), "lines")

Run the code above in your browser using DataLab