[R] Lattice different colours for bars

2013-06-13 Thread Andrew McFadden (Andy)
Hi all Perhaps this is torturous methodology. I was trying to use lattice to produce a barchart showing the number positive and negative over time. I wasn't quite sure how create a different colour for values of arbo$Ikeda in the example below ie red for ikeda and green for neg.

Re: [R] Lattice different colours for bars

2013-06-13 Thread David Winsemius
On Jun 12, 2013, at 6:43 PM, Andrew McFadden (Andy) wrote: Hi all Perhaps this is torturous methodology. I was trying to use lattice to produce a barchart showing the number positive and negative over time. I wasn't quite sure how create a different colour for values of arbo$Ikeda in the

Re: [R] Lattice different colours for bars

2013-06-13 Thread Duncan Mackay
Hi The example contained errors in the line with cast and it is too late to check without a reproducible example i am only guessing perhaps add a groups argument and supply a col argument to superpose polygon eg groups = Ikeda, par.settings = list(superpose.polygon = list(col = 12 colours to