Re: [R] xyplot: problems with column names legend

2010-01-05 Thread Jay
Anybody? Frustrating to be unable to solve this silly little problem... On Jan 3, 12:48 pm, Jay josip.2...@gmail.com wrote: Thanks, the backtickes got the code working. However, now I cant get it to draw the legend/key. For example, look at this

Re: [R] xyplot: problems with column names legend

2010-01-05 Thread Felix Andrews
You have not said what the problem is, i.e. what you have tried and what you expect. Please post a small, reproducible example if you want help. Regards -Felix 2010/1/6 Jay josip.2...@gmail.com: Anybody? Frustrating to be unable to solve this silly little problem... On Jan 3, 12:48 pm, Jay

Re: [R] xyplot: problems with column names legend

2010-01-05 Thread Peter Ehlers
Jay, I don't recall the details of your original post so the following may be entirely off the mark; nevertheless, here goes: thetext - paste('Data', 1:8) # or: thetext - paste('Data', c('one', 'two', 'three', etc)) xyplot(decrease ~ treatment, OrchardSprays, groups = rowpos, type = a,

Re: [R] xyplot: problems with column names legend

2010-01-03 Thread baptiste auguie
Hi, Using backticks might work to some extent, library(lattice) `my variable` = 1:10 y=rnorm(10) xyplot(`my variable` ~ y) but if your data is in a data.frame the names should have been converted, make.names('my variable') [1] my.variable HTH, baptiste 2010/1/3 Jay josip.2...@gmail.com:

Re: [R] xyplot: problems with column names legend

2010-01-03 Thread Jay
Thanks, the backtickes got the code working. However, now I cant get it to draw the legend/key. For example, look at this figure: http://osiris.sunderland.ac.uk/~cs0her/Statistics/xyplot5.png My graph is similar, but instead of 1,2,...,8 as the names of the series I want it to say Data one (a

Re: [R] xyplot: problems with column names legend

2010-01-02 Thread David Winsemius
On Jan 2, 2010, at 6:51 PM, Jay wrote: Hello! one more question about xyplot. If I have data which have space in the column names, say xyz 123. How do I create a working graph where this text is displayed in the legend key? Now when I try something like xyplot(xyz 123 ~ variable1, data =