getMark()
allows access a location within LaTeX output relative to the rendering
in R.
addMark()
allows third-party packages to add marks to the
rendering in R.
getMark(name)
addMark(name, devx, devy, vpx=NA, vpy=NA, vpPath=NULL)
getMark
returns a list containing the location (and viewport)
information for the mark.
The name of a mark.
The location of the mark on the device (in inches).
The location of the mark relative to the viewport in which the mark was rendered.
The viewport path to the viewport in which the mark was rendered.
The saved locations are only relative to the current device size. Resizing the device, or copying between devices will result in incorrect locations.
A call to addMark()
using an existing mark name will
overwrite the previous mark information.
Paul Murrell
Some LaTeX packages, e.g., see zrefPackage
,
allow positions within text to be
saved with a label. This function allows those saved locations
to be accessed, e.g., to add further drawing relative to those locations.