| gg_to_npc.ggtikzCanvas | R Documentation |
Convert data coordinates to npc coordinates.
## S3 method for class 'ggtikzCanvas'
gg_to_npc(self, coord, panelx, panely, ...)
self |
a |
coord |
A numeric vector of length 2, with the x coordinate to convert
at |
panelx |
X position (column) of the panel holding the data |
panely |
X position (row) of the panel holding the data |
... |
unused |
The input coordinates from coord converted to npc coordinates in
the form of a numeric vector of length 2. (0,0) corresponds to the lower
left corner of the viewport containing the ggplot panel specified by
panelx and panely, and (1,1) corresponds to the upper right corner.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.