index2xy {BoardGames} | R Documentation |
Converts a matrix index into a sex of x,y coordinates.
Description
This function converts a matrix index into unit x,y plotting coordinates.
Usage
index2xy(data, index)
Arguments
data |
Matrix or data frame. |
index |
A vector of index values. |
Examples
M = matrix(1:20,4,5)
index2xy(data = M, index = c(3,4))
[Package BoardGames version 1.0.0 Index]