grid.comment: Create a grid grob representing a comment

View source: R/comment.R

grid.commentR Documentation

Create a grid grob representing a comment

Description

Creates a comment.grob object which is a grid nullGrob, with a comment attached. Useful in conjunction with grid.export, to produce an SVG document with comments inserted at the point where the grob is “drawn”.

Usage

grid.comment(comment, name = NULL, vp = NULL)
commentGrob(comment, name = NULL, vp = NULL)

Arguments

comment

A character vector used to write out a comment. If this has a length greater than one, each element is assumed to be a line.

name

A character identifier.

vp

The viewport to which the grob belongs.

Value

A comment.grob object.

Author(s)

Simon Potter

See Also

grid.export


gridSVG documentation built on March 18, 2022, 7:13 p.m.