interaction.plot {interactionPlot} | R Documentation |
Drawing an Interaction Plot.
interaction.plot<- function ( f1, f2, data, main = "Interaction Plot", xlab = deparse( substitute( f2 ) ), ylab = paste( "Mean of", deparse( substitute( data ) ) ), legend = T, leg.order = 1:n1, ... )
f1 |
First variable |
f2 |
Second variable |
data |
Data set |
Kaspar Pflugshaupt: The author of the actual plot code. Ko-Kang Wang : Put together the files to form this package.
library(interactionPlot) data(asphalt) interaction.plot( Aggregate, Compaction, Strength, main = "Effect of Compaction Method against Aggregate Type" ) interaction.plot( Compaction, Aggregate, Strength, main = "Effect of Aggregate Type against Compaction Method" )