Displaying 1 result from an estimated 1 matches for "tp4658900p4658912".
2013 Feb 18
1
lattice dotplot labelling median and mean values for each panel
By considering this reproducible example
#start code
library(lattice)
dotplot(variety ~ yield | site, data = barley,
layout = c(1,6),
index.cond= function(x,y){median(x)},
panel = function(x,y,...) {
panel.dotplot(x,y,...)
median.values <- median(x)
panel.abline(v=median.values, col.line="red")