Color Mutation Graph with Trackviewer
1
0
Entering edit mode
4.7 years ago
j.lunger18 ▴ 30

On the Trackviewer documentation: https://www.bioconductor.org/packages/release/bioc/vignettes/trackViewer/inst/doc/trackViewer.html#lolliplot They have a way of specifying colors of mutations along a gene using Lolliplot:

sample.gr$color <- sample.int(6, length(SNP), replace=TRUE)
lolliplotsample.gr, features)

I want to specify colors using a list of colors that I made to associate a specific color with the type of mutation. I don't understand how sample.int is specifying colors, or how to make it so that my colors are the ones being shown.

TrackViewer R Lolliplot • 1.1k views
ADD COMMENT
0
Entering edit mode
4.4 years ago
qiuworld.ou ▴ 140

Just use character or numbers which can be converted into colors. for example you can set

color <- c("red", "blue", "#000000")
ADD COMMENT

Login before adding your answer.

Traffic: 1171 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6