[genoPlotR-help] genoplotR: setting up colors for dna segments based on name
Migun Shakya
microbeatic at gmail.com
Fri Mar 7 13:18:13 CET 2014
Thank you Lionel.
I used the look up table approach, and it worked great. I was going to add the col column, but i was misthinking that it might get ignored when converting to dna_seg.
Thank you again.
Migee
On Mar 7, 2014, at 3:14 AM, Lionel Guy <guy.lionel at gmail.com> wrote:
> for (i in 1:length(dna_segs)){
> dna_segs[[i]]$col <- "black"
> for (j in 1:nrow(lt)){
> dna_segs[[i]]$col[dna_segs[[i]]$name == lt$name[j]] <- lt$col[j]
> }
> }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/genoplotr-help/attachments/20140307/6aedff0c/attachment.html>
More information about the genoPlotR-help
mailing list