search for: xvname

Displaying 2 results from an estimated 2 matches for "xvname".

Did you mean: vname
2007 Oct 17
1
passing arguments to functions within functions
...require("grid") require("lattice") ytext <- as.character(formula[2]) yvname <- formula[[2]] y <- eval(parse(text = ytext), data) xexp <- formula[[3]] if (length(xexp) > 1 && as.character(xexp[[1]]) == "|") { xvname <- xexp[[2]] byname <- xexp[[3]] xtext <- as.character(xexp[2]) bynametext <- as.character(xexp[3]) } else {xvname <- xexp; xtext <- as.character(xexp)} xv <- eval(xvname, data) byfac <- eval(byname, data) if (!miss...
2010 Jul 27
1
xYplot error
...5408 PF LD 0.027567430 0.020523820 MSF LD 0.024698872 0.020320976 YSF LD Having read previous posts on xYplot being unable to plot x-axis as factors, I used numericScale, but I still get this error. Error in label.default(xv, units = TRUE, plot = TRUE, default = as.character(xvname), : the default string cannot be of length greater then one I used: xYplot(cbind(mort, mort + stand, mort - stand) ~ numericScale(site) | type, method="bars") Am I missing something or doing something wrong? Thanks. KM