Re: [R] is it possible to combine multiple barplots?

2009-06-10 Thread Philipp Schmidt
Thank you for the helpful reply! I am relatively new to R (the software and the community) and was not aware of the example galler. Now I am. The example you found looks very close to what I am trying to do and I should be able to modify it. Best - P On Tue, Jun 9, 2009 at 4:45 PM, Titus von der

[R] is it possible to combine multiple barplots?

2009-06-09 Thread Philipp Schmidt
i am working with two sets of likert scale type (4 distinct values) data: dataA <- rep(1:4, c(3,2,2,4)) dataB <- rep(1:4, c(5,4,3,2)) i can now (bar)plot both of these separately and compare the distributions. plot(table(dataA), type='h') plot(table(dataB), type='h') is there a way to plot both

Re: [R] creating and then executing command strings

2009-05-18 Thread Philipp Schmidt
probably better ways to do what you want, Romain's second example > is one way. > -- > Gregory (Greg) L. Snow Ph.D. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > >> -Original Message- >> From: r-

Re: [R] creating and then executing command strings

2009-05-15 Thread Philipp Schmidt
On Fri, May 15, 2009 at 3:38 PM, Romain Francois wrote: > Hi, > > You can either parse and eval the string you are making, as in: > > eval( parse( text = paste("avg_",colname, " <- 0;", sep='') ) ) > > > Or you can do something like this: > > df[[ paste( "avg_", colname, sep = "" ) ]] <- 0 > Than

[R] creating and then executing command strings

2009-05-15 Thread Philipp Schmidt
Hi: I very recently started experimenting with R and am occasionally running into very basic problems that I can't seem to solve. If there is an R-newbies forum that is more appropriate for these kinds of questions, please direct me to it. I'd like to automatically add vectors to a dataframe. I a