search for: sometxt

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

Did you mean: sometext
2004 Aug 06
1
Lattice: how to index in a custom panel function?
...ould like is to adapt the text in the panel according to the levels of FactorA. In the manuals, I find examples for the strips using which.given and which.panel. But this does not work for the panels... Can Anybody give a hint? Thanks Joris I work with R 1.9.1 under Linux panel.txt = function(sometxt,x,y,...){ grid.text(sometxt,x,y) } xyplot(data = Pdata, P ~ DAS | FactorA, groups = FactorB, type ="s", col = c("red","blue"), panel = function(x,y,...){ panel.abline(h = 100, lty = 5, lwd =0.5, col = "darkgrey") panel.txt(myte...
2002 Apr 18
3
Variable definition problem
Hello, what does this error message indicate and how do I avoid this? (sample code below) Thank you. -Tosh #read in the data table co<-read.table("co.txt",header=T,as.is=T) for (i in 1:3){ paste("logco",i, sep="")<-log(co$co[co$day==i]) } Gives the error: Error: Target of assignment expands to non-language object