Hi again, After playing a bit further, I have got the dotplot to put different symbols using pch = c(1,2,3,4,5), however, the symbols do not appear in the label, where I still get only circles of different colors!!! Any help? thanks! On 10/25/07, Omar Baqueiro <obaqueiro at gmail.com> wrote:> Hello, > > I am trying to plot a chart similar to the typical barley yield dotplot: > dotplot(variety ~ yield | site, data = barley, > groups = year, auto.key = list(space = "right"), > xlab = "Barley Yield (bushels/acre) ", > aspect=0.5, layout = c(1,5)) > > However, I need the plot have different shapes for the different keys > and currently I just get circles with different colours as the keys. > Can someone tell me the way to indicate R how to assign automatically > keys which are black/white printer friendly? > > Thank you! > > Omar. > > -- > Omar Baqueiro Espinosa > Computer Science PhD Candidate > Computer Systems Engineer > Workpage: www.csc.liv.ac.uk/~omar/ > HomePage (spanish):http://www.baqueiro.co.uk/ > PGP Key available at: www.csc.liv.ac.uk/~omar/pgp.html > _____ >-- Omar Baqueiro Espinosa Computer Science PhD Candidate Computer Systems Engineer Workpage: www.csc.liv.ac.uk/~omar/ HomePage (spanish):http://www.baqueiro.co.uk/ PGP Key available at: www.csc.liv.ac.uk/~omar/pgp.html _____
deepayan.sarkar at gmail.com
2007-Oct-25 21:16 UTC
[R] Trellis dotplot label keys (update)
On 10/25/07, Omar Baqueiro <obaqueiro at gmail.com> wrote:> Hi again, > After playing a bit further, I have got the dotplot to put different > symbols using pch = c(1,2,3,4,5), however, the symbols do not appear > in the label, where I still get only circles of different colors!!!The easiest way is: trellis.device(color = FALSE) ## code (same for color and b&w) dotplot(variety ~ yield | site, data = barley, groups = year, auto.key = list(space = "right"), xlab = "Barley Yield (bushels/acre) ", aspect=0.5, layout = c(1,5)) Does this do what you want? -Deepayan