[R] More than on loop??
jim holtman
jholtman at gmail.com
Tue Jan 26 05:08:12 CET 2010
It sounds like you want to use 'barplot' like below given that it
appears that the value in x.c would be the matrix you want to graph:
x.c <- cleaved(x)
barplot(x.c, col=c("#FFFFFF", "#FFFFCC", "#FFFF99", "#FFFF66", "#FFFF33",
"#FFFF00", "#FFCCFF", "#FFCCCC", "#FFCC99", "#FFCC66", "#FFCC33",
"#FFCC00", "#FF99FF", "#FF99CC", "#FF9999", "#FF9966", "#FF9933",
"#FF9900", "#FF33FF", "#FF33CC"))
THis seems to produce something like you want.
On Mon, Jan 25, 2010 at 10:42 PM, che <fadialnaji at live.com> wrote:
>
> 70% yes, the problem is i am trying to produce a graph similar to the one in
> attachments in this message, which represents the frequency of each letter
> "aminoacid" in the cleaved function and the noncleaved function. some thing
> else i added to the attachments is the pattern which seemingly working
> correctly, i am trying now to create a R code to loop and simulate this
> pattern in order to draw all rectangles for the eight columns. But i don't
> know exactly how to deal with this variable which i highlighted with yellow
> in the image, it is cumulative in a challenging way.
> http://n4.nabble.com/file/n1290048/cleaved.jpg cleaved.jpg
> http://n4.nabble.com/file/n1290048/pattern.jpg pattern.jpg
> --
> View this message in context: http://n4.nabble.com/More-than-on-loop-tp1015851p1290048.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?
More information about the R-help
mailing list