Re: [R] Wrapping long labels in barplot(2)

2005-04-15 Thread Jim Lemon
Jan P. Smit wrote: I am using barplot, and barplot2 in the gregmisc bundle, in the following way: barplot2(sort(xtabs(expend / 1000 ~ theme)), col = c(mdg7, mdg8, mdg3, mdg1), horiz = T, las = 1, xlab = "$ '000", plot.grid = T) The problem is that the values of 'theme', which is a factor,

Re: [R] Wrapping long labels in barplot(2)

2005-04-14 Thread Jan P. Smit
CTED] Sent: Thursday, 14 April 2005 5:15 PM To: Mulholland, Tom Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Wrapping long labels in barplot(2) Dear Tom, Many thanks. I think this gets me in the right direction, but concatenates all levels into one long level. Any further thoughts? Best regards, Jan

RE: [R] Wrapping long labels in barplot(2)

2005-04-14 Thread Mulholland, Tom
r-help@stat.math.ethz.ch > Subject: Re: [R] Wrapping long labels in barplot(2) > > > Dear Tom, > > Many thanks. I think this gets me in the right direction, but > concatenates all levels into one long level. Any further thoughts? > > Best regards, > > Jan >

Re: [R] Wrapping long labels in barplot(2)

2005-04-14 Thread Jan P. Smit
one long level. Any further thoughts? Best regards, Jan Mulholland, Tom wrote: This may not be the best way but in the past I think I have done something like levels(x) <- paste(strwrap(levels(x),20,prefix = ""),collapse = "\n") Tom -Original Message- From: Jan P

Re: [R] Wrapping long labels in barplot(2)

2005-04-14 Thread Marc Schwartz
est way but in the past I think I have done something > > like > > > > levels(x) <- paste(strwrap(levels(x),20,prefix = ""),collapse = "\n") > > > > Tom > > > > > >>-Original Message- > >>From: Jan P. Smit [mailt

Re: [R] Wrapping long labels in barplot(2)

2005-04-14 Thread Jan P. Smit
s(x),20,prefix = ""),collapse = "\n") Tom -Original Message- From: Jan P. Smit [mailto:[EMAIL PROTECTED] Sent: Thursday, 14 April 2005 11:48 AM To: r-help@stat.math.ethz.ch Subject: [R] Wrapping long labels in barplot(2) I am using barplot, and barplot2 in the gregmisc bu

RE: [R] Wrapping long labels in barplot(2)

2005-04-13 Thread Mulholland, Tom
April 2005 11:48 AM > To: r-help@stat.math.ethz.ch > Subject: [R] Wrapping long labels in barplot(2) > > > I am using barplot, and barplot2 in the gregmisc bundle, in the > following way: > > barplot2(sort(xtabs(expend / 1000 ~ theme)), > col = c(mdg7, mdg8, mdg3, mdg1)

[R] Wrapping long labels in barplot(2)

2005-04-13 Thread Jan P. Smit
I am using barplot, and barplot2 in the gregmisc bundle, in the following way: barplot2(sort(xtabs(expend / 1000 ~ theme)), col = c(mdg7, mdg8, mdg3, mdg1), horiz = T, las = 1, xlab = "$ '000", plot.grid = T) The problem is that the values of 'theme', which is a factor, are in some cases