panel.avg.LP | R Documentation |
Panel function that can be used with xyplot() (lattice) and related functions to plot the average (or other metric) of y values at each X, while also drawing connecting lines and points. This is modified version of panel.average, and is used by panel.meanspag()
panel.avg.LP(
x,
y,
fun = mean,
horizontal = TRUE,
lwd = reference.line$lwd,
lty = reference.line$lty,
col,
col.line = reference.line$col,
type = "l",
...,
identifier = "linejoin",
show.points = FALSE
)
x, y |
The regular x, y input for panel functions |
fun |
function to summarize by, defaults to |
horizontal |
logical (T) indicating if the average needs to be taken vertical or horizontal |
lwd |
line width (taken from |
lty |
line type (taken from |
col |
observed data color |
col.line |
line color (taken from |
type |
same as type in a lattice call (default is "l" for lines) |
... |
passed to panel.points() and panel.lines() |
identifier |
option to join lines (which is default) |
show.points |
logical indicating to show observed data dots |
Nothing -> internal to a lattice call
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.