[R] changing settings on a barchart (lattice)

2009-02-11 Thread Dimitri Liakhovitski
Hello! I apologize - I never used lattice before, so my question is probably very basic - but I just can't find the answer in the archive nor in the documentation: I have a named numeric vector p of 6 numbers (of the type 6 numbers with people's names to whom those numbers belong). I want a

Re: [R] changing settings on a barchart (lattice)

2009-02-11 Thread Dieter Menne
Dimitri Liakhovitski ld7631 at gmail.com writes: I apologize - I never used lattice before, so my question is probably very basic - but I just can't find the answer in the archive nor in the documentation: I have a named numeric vector p of 6 numbers (of the type 6 numbers with people's

Re: [R] changing settings on a barchart (lattice)

2009-02-11 Thread Dimitri Liakhovitski
Thanks a lot, Sundar. I experimented somewhat and here is the code that works well - it allows me to modify most of the stuff I want to modify: p-as.vector(c(0.1, 0.2, 0.3, 0.4)) names(p)-c(A,BB,,) barchart(~sort(p), main=list(Chart Title,cex=1),xlab=list(X axis

Re: [R] changing settings on a barchart (lattice)

2009-02-11 Thread Sundar Dorai-Raj
Add the adj argument to panel.text to left (adj = 0) or right(adj = 1) justify the text. Add the font argument to change the font. See ?text. --sundar On Wed, Feb 11, 2009 at 1:25 PM, Dimitri Liakhovitski ld7...@gmail.com wrote: Thanks a lot, Sundar. I experimented somewhat and here is the code