iplot: Plot eye-movement summaries by sentence region.

Usage Arguments Details Value Author(s)

Usage

1
2
3
4
5
6
7
8
iplot(x.factor, trace.factor, response, fun = function(x) {     mean(x, na.rm
  = TRUE) }, type = c("l", "p", "b", "o"), legend = TRUE,
  leg.title = deparse(substitute(trace.factor)), trace.labels = NULL,
  fixed = FALSE, xlab = deparse(substitute(x.factor)), ylab = ylabel,
  main = "", ylim = range(cells, na.rm = TRUE), lty = nc:1, lwd = 1,
  col = 1, pch = c(1:9, 0, letters), xpd = NULL, leg.bg = par("bg"),
  leg.bty = "n", point.cex = 1, leg.x = 1, leg.y = ylim[2],
  xtick = FALSE, xaxt = par("xaxt"), axes = TRUE, ...)

Arguments

x.factor

Factor for x axis, usually sentence region.

trace.factor

Factor for separate traces, usually sentence condition.

response

Response measure to be plotted on y axis.

fun

Function for summarizing response measure, defaults to mean(x, na.rm=T).

type

This and following params are as per plot() and par(), which see.

...

other parameters that will be passed to matplot()

Details

iplot() is based on interaction.plot(). Be careful of missing values in "response"; make sure that "fun" does the right thing with them.

Value

None. Used for its side effects.

Author(s)

David Braze davebraze@gmail.com


davebraze/FDB1 documentation built on May 14, 2019, 8:59 p.m.