print.glyph_layout: Draw a glyph layout when it is printed

View source: R/layout.R

print.glyph_layoutR Documentation

Draw a glyph layout when it is printed

Description

A printed layout draws itself, the same way a single plot does. At the console it opens in the viewer, and in R Markdown, Quarto and vignettes it is embedded in the document. Call render() only to set the width and height, and use summary() for a text description.

In a non-interactive session that isn't knitting a document, such as Rscript, there is nowhere to draw, so printing gives a one-line description instead.

Usage

## S3 method for class 'glyph_layout'
print(x, ...)

## S3 method for class 'glyph_layout'
knit_print(x, ..., options = NULL)

Arguments

x

A glyph_layout object

...

Passed on to knitr when knitting; otherwise ignored.

options

knitr chunk options, supplied by knitr.

Value

print() invisibly returns x. knit_print() returns the rendered widget's HTML for knitr to include in the document.


glyph documentation built on Oct. 21, 2026, 5:12 p.m.