![]() ![]() However, you could achieve your goal manually by navigating to the respective strip panels using downViewport and subsequently inserting the two lines of text separately using grid.text. I would like them to be closer together, but I don't know if it is possible, and if so, how to do it.ĭoes anyone know how to skip lines in the strip name, keeping the expression for the italics but not make too much space between names? It's not so bad on the plot, but when I use tiff() to save to a image with a greater size, the strip names are missing some parts, basically due to the distance between the lines, I think.Īs explained by Duncan Murdoch via the R-help mailing list, this problem cannot be easily solved without employing atop (which results, in your particular case, in undesirably large line spacing). I saw on Google the possibility to use atop inside an expression to get 2 lines of text, but I get a too big space between the species name and the next line. This problem started because, as the title are species names, they need to be in italic, but I also need to add some extra information on the title, and this should not be in italic. My question is, are there a way to get a smaller space between the species name and "outra info". Par.settings=list(layout.heights=list(strip=2.5)) raniceps"),"outra info")),Įxpression(atop(italic("P. paradoxa"),"outra info")),Įxpression(atop(italic("H. Preditor2<-rep(c("sp1","sp2","sp3"),each=30)Īnd I'm doing the following plot: library(lattice)īwplot(resposta~preditor1|preditor2,layout=c(3,1),Įxpression(atop(italic("P. Here is a data example: resposta<-rnorm(90) ![]() ![]() I'm having difficulties to write correctly a strip name in a lattice plot. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |