Re: [R] Barplot: Vertical bars with long labels

2008-10-29 Thread Udo
sage- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Udo > > Sent: Wednesday, October 29, 2008 2:43 PM > > To: r-help@r-project.org > > Subject: [R] Barplot: Vertical bars with long labels > > > > Dear List, > > I need a barpl

Re: [R] Barplot: Vertical bars with long labels

2008-10-29 Thread Christos Hatzis
s, function(x) gsub("\\s", "\\\n", x)) > barplot(dd, names.arg=dd.names.2) -Christos > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Udo > Sent: Wednesday, October 29, 2008 2:43 PM > To: r-help@r-project.org >

Re: [R] Barplot: Vertical bars with long labels

2008-10-29 Thread Henrique Dallazuanna
Try this: nm <- c('Conduct Disorders','Attention Deficit', 'Eating Disorders','Substance Abuse','Developmental Disorders') barplot(dd, names.arg = gsub(" ", "\n", nm)) On Wed, Oct 29, 2008 at 4:43 PM, Udo <[EMAIL PROTECTED]> wrote: > Dear List, > I need a barplot with vertical bars. Each bar sho

[R] Barplot: Vertical bars with long labels

2008-10-29 Thread Udo
Dear List, I need a barplot with vertical bars. Each bar should have a label. The problem is, that the labels are too long, so they overlap, or only every seccond label is displayed in the output. Here is a little syntax: dd <- c(100,110,90,105,95) barplot(dd,names.arg=c('Conduct Disorders','Atte