Interaction Plot

An interaction plot displays the mean response for one factor across the levels of another factor.

Parallel lines suggest little or no interaction, while clearly non-parallel lines suggest interaction.

R

interaction.plot(dat$B, dat$A, dat$y)