Entering edit mode
I am having trouble assigning colors as lists to multiple tracks. As far as I can tell, my approach is identical to that of the ?setTrackStyleParam example for designating track colors. I am not the best at dealing with this list type, so any help would be appreciated.
> setTrackStyleParam(trackList,"color",value = c("red4","blue1","blue2","blue3","purple"))
#Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function 'setTrackStyleParam' for signature '"trackList", "character"'
> length(trackList)
#[1] 5
>setTrackStyleParam(trackList[[1]],"color",value = "red4")
#assigning colors to individual elements works fine
Thanks for the tip! I am guessing that the 2-color vectors are for positive and negative values? I mistook these as tracklist elements.
Yes, the two colors are for
dat
anddat2
. dat2 will be plotted as negative values.