getFigCtr | R Documentation |
Calculates the coordinates of a proportional point of the figure region in user units.
getFigCtr(pos=c(0.5,0.5))
pos |
The proportion of the figure region to find (see Details). |
‘getFigCtr’ reads parameters about the current plot and calculates the vertical and horizontal centers of the figure region by default. This is typically useful for placing a centered title on plots where the left and right margins are very different.
By changing ‘pos’, any proportional points of the figure region can be returned. For example, ‘pos=c(0,0)’ will return the left and bottom coordinates of the figure region.
A two element vector containing the coordinates of the center of the figure region in user units.
Jim Lemon (thanks to Karl Brand for the adjustable coordinates)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.