Displaying 1 result from an estimated 1 matches for "attributeindata".
2011 Jun 09
1
lattice plot query
...uot;value"), row.names = c(NA, 352L), class = 
"data.frame")
## Here is the code to create lattice plot subject wise, for each 
attribute and product from the study.. 
##This code creates a pdf file output of all plots and saves the file in 
the destination given.
library(lattice)
Attributeindata<-levels(MyData$Attribute)
productindata<-levels(MyData$Product)
pdf(file="D:/Test/latticeplotsbysubject.pdf")
for(i in 1:length(Attributeindata))
{
        for(j in 1:length(productindata))
        {
print(xyplot(value ~ Time | Subj, 
data=subset(MyData,Attribute==Attributeindata[i]...