Learn R Programming

memery (version 0.6.0)

text_position: Default meme text position

Description

Convenience function for meme text position in a meme plot.

Usage

text_position(n)

Value

a list of meme text label position arguments: w (width), h (height), and x and y coordinates.

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.

Examples

Run this code
text_position(1)
text_position(2)

Run the code above in your browser using DataLab