Re: [R] profile plot in R

2011-06-20 Thread Vickie S
Hi Dennis and all friends, After upgrading to R 2.11.1, I managed to work this out perfectly. I also added group information here, since I wanted to color code the profiles according to the groups they were assigned to. library("reshape") library("ggplot2") sampledata <- matrix(c(1.002, 1.76,

Re: [R] profile plot in R

2011-06-20 Thread Brian Diggs
attached): [1] digest_0.5.0 In particular, the most recent version of plyr is 1.5.2; I assume it would work with R 2.10.1, but I don't know. You may need to install it as a source package. Vickie S Date: Mon, 20 Jun 2011 07:28:12 -0700 S

Re: [R] profile plot in R

2011-06-20 Thread Vickie S
8/en_US.UTF-8 attached base packages: [1] grid  stats graphics  grDevices utils datasets  methods   base other attached packages: [1] plyr_1.1  ggplot2_0.8.9 proto_0.3-8   reshape_0.8.3 loaded via a namespace (and not attached): [1] tools_2.10.1 Any suggestions ? Vickie S ---

Re: [R] profile plot in R

2011-06-20 Thread Dennis Murphy
; +  geom_line(aes(colour = sampledata$grp)) + > + facet_grid(~ rownames(sampledata)) > Error in get("make_aesthetics", env = x, inherits = TRUE)(x, ...) : >   could not find function "empty" > > = > > > thanks again, > Vickie S > >

Re: [R] profile plot in R

2011-06-20 Thread Vickie S
)) Error in get("make_aesthetics", env = x, inherits = TRUE)(x, ...) :   could not find function "empty" = thanks again, Vickie S > CC: r-help@r-project.org > From: jwiley.ps...@gmail.com > Subject: Re: [R] profile plot in

Re: [R] profile plot in R

2011-06-18 Thread Joshua Wiley
Hi, Another easy option would be to convert your data to "long" format and then use ggplot2 or lattice. Something like (though not exact without a reproducible example): require(ggplot2) long.dat <- melt(your_data, arguments) ggplot(long.dat, aes(x = variable, y = value)) + geom_line(aes(co

Re: [R] profile plot in R

2011-06-18 Thread Duncan Murdoch
On 11-06-17 3:43 PM, Vickie S wrote: Hi friends, I have a matrix with following format. group var1 var2 ...varN c1 group1 1.2399 1.4990-1.4829 c2 group4 0.8989 0.7849.1.8933 ... ... c100 group10 . I want to draw a profile plot of each condition c1 to c100, which row

[R] profile plot in R

2011-06-17 Thread Vickie S
Hi friends, I have a matrix with following format. group var1 var2 ...varN c1 group1 1.2399 1.4990-1.4829 c2 group4 0.8989 0.7849.1.8933 ... ... c100 group10 . I want to draw a profile plot of each condition c1 to c100, which rows in above matrix and each line represen