text_position: Default meme text position

View source: R/text.R

text_positionR 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)

leonawicz/memery documentation built on Sept. 19, 2023, 2:44 a.m.