Trsp.mlds <- mlds(as.mlds.df(Transparency[, -6], st = attr(Transparency, "stimulus")))
plot(Trsp.mlds, xlab = "Index of Refraction", type = "l",
ylab = "Difference Scale", ylim = c(0, 20),
lwd = 3)
Trsp.Obs <- sapply(levels(Transparency$Obs), function(obs)
mlds(as.mlds.df(subset(Transparency, Obs == obs,
select = 1:5), st = attr(Transparency, "stimulus"))),
simplify = FALSE, USE.NAMES = TRUE)
invisible(sapply(Trsp.Obs, lines, type = "b"))
Run the code above in your browser using DataLab