[R] graphing with barchart question

Deepayan Sarkar deepayan.sarkar at gmail.com
Mon May 7 20:20:03 CEST 2007


On 5/7/07, Matthew Bridgman <m.bridgman at sbcglobal.net> wrote:
> I am graphing data using barchart (barchart(DV ~ IV | subject). I
> have 2 groups of 9 subjects each. How can I easily identify which
> group each subject belongs to? I have been trying to color code them,
> but can't seem to get that to work. Any suggestions would be
> appreciated.

Not sure what you are looking for (is your "group" one of DV and IV,
or is it something entirely different?). A reproducible example would
have helped, but try looking at ?panel.barchart and use the 'groups'
and 'stack' arguments.

-Deepayan



More information about the R-help mailing list