imageInteraction: Plot an two-way quantitative interaction in an image plot

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Plot an two-way quantitative interaction in an image plot

Usage

1

Arguments

data

a data matrix with columns indicating the values of x, y, and z

x

the name of the x variable (a string)

y

the name of the y variable (a string)

z

the name of the z variable (a string)

plot

Should an image be plotted?

legend

add a legend to the plot?

...

other arguments passed to anchored.gradient.

Details

The image function is quite useful for displaying two-way quantitative interactions (variable X on the X axis, variable Y on the Y axis, and z represented as a color). However, this function requires a matrix where the cells (r_ij) represent the Z value in the ith value of x and jth value of y. Getting it into matrix form can be annoying if it natively comes in long-column format. This function takes a data matrix, conditions as well as z in the columns, and returns an image matrix.

Value

the x range, y range, and image matrix

Author(s)

Dustin Fife

See Also

image

Examples

1
## do this later

vagnerfonseca/fifer documentation built on May 3, 2019, 4:06 p.m.