text_position {memery} | R Documentation |
Default meme text position
Description
Convenience function for meme text position in a meme plot.
Usage
text_position(n)
Arguments
n |
integer, number of meme text labels. |
Details
This function takes an integer 1 or 2 and returns, respectively, top or symmetrical top and bottom meme text position arguments.
This function is used as the default for the label_pos
argument in meme
.
It is provided if you do not want to bother with specifying coordinates and exact placement does not matter.
It is not intended for placement of more than two meme text labels and any value other than 1 or 2 returns an error.
Value
a list of meme text label position arguments: w
(width), h
(height), and x
and y
coordinates.
Examples
text_position(1)
text_position(2)
[Package memery version 0.5.7 Index]