So to simplify this a bit:
Using dataframe:
name x1 x2 x3 x4 x5 x6 x7 x8
1 fred 2 3 4 6 7 8 9 12
2 fred 4 5 6 8 9 10 11 14
3 fred 6 7 8 10 11 12 13 16
4 fred 8 9 10 12 13 14 15 18
5 james 10 11 12 14 15 16 17 20
6 james 12 13 14 16 17 18 19 22
7 james 14 15 16 18
Thanks Mike - this doesn't quite do it, but I think that you've hit of the
right method.
I am just trying to use 'plot' initially - I don't care so much about the
arrangement in the file.
plot(df$y,group=df$f) outputs the Y column in the appropriate plot. What I
would like to do is have 10 Y col
I imagine you want the ggplot2 package.
something like:
ggplot(dataframe, aes(x = yourxvar, y = youryvar)) +
geom_point() +
facet_wrap(~ ProbeSet.ID)
Or facet_grid(), either of which makes a different panel for each unique level
of ProbeSet.ID
see gggplot help here: http://had.co.nz/ggplot2/
> Date: Thu, 24 Feb 2011 13:28:18 -0800
> From: dannyb...@gmail.com
> To: r-help@r-project.org
> Subject: Re: [R] Group rows by common ID and plot?
>
does this do what you want?
library("lattice")
df<-data.f
In terms of a reproducible example:
ProbeSet.ID.F ProbeSet.ID Feature.ID Gene.Symbol X0030V120810.4
X0143V120110.4 X0258V111710.4 X0283V111710.4 X0430V120710.4 X0472V111610.4
X0520V111610.4 X0546V113010.4 X0578V111810.4 X0624V111810.4
7896741_479302 7896741 479302 OR4F17
Suspect that this is easier than I realize, but taking some figuring out
currently. Any help would be appreciated.
I have a data frame (testhm) with many rows such as:
ProbeSet.ID.F ProbeSet.ID Feature.ID G.S X0030V120810.14 X0143V120110.14
X0258V111710.14 X0283V111710.14 X0430V120710.14 X047
6 matches
Mail list logo