Multiple colours in GenomeGraphs?
1
0
Entering edit mode
Mark Dunning ▴ 320
@mark-dunning-1634
Last seen 10.3 years ago
Hi all, I have just started using the GenomeGraphs package, which I think is a really good piece of software :) I am using the package to plot expression values across a genomic region. However, it seems to plot all points on the same "track" in the same colour? I was wondering if it is possible to use different colours to highlight particular probes I am interesting in, (or use different plotting characters). I thought something like: dp=DisplayPars(color=c("red","blue")) might work, but it just produced one colour. Apologies if there is already the ability to do this, but I didn't see anything so far. Many thanks, Mark
GenomeGraphs GenomeGraphs • 1.0k views
ADD COMMENT
0
Entering edit mode
@james-bullard-1231
Last seen 10.3 years ago
Hi Mark, Colors are handled somewhat differently at this point depending on what class you are in (i.e. BaseTrack, GenericArray). dp1 = DisplayPars(color = c(rep("blue", 1), rep("red", 1))) dp2 = DisplayPars(color = c(rep("blue", 500), rep("red", 500))) gdPlot(new("BaseTrack", base = rpois(1000, 1), value = exp(rnorm(1000)), dp = dp1)) gdPlot(new("BaseTrack", base = rpois(1000, 1), value = exp(rnorm(1000)), dp = dp2)) For the generic array: gdPlot(new("GenericArray", probeStart = rpois(1000, 1), intensity = matrix(exp(rnorm(2000)), ncol = 2), dp = dp1)) Note: here are coloring is based on which column it is. So if I use my dp2 in this case I don't really get anything sensible. In this case colors pertain to columns and not individual points. Please let me know what class your using and I can probably add the capability to do what you want. Features like this we definitely want to support, we just haven't got around to ironing them out. thanks, jim On May 15, 2008, at 7:39 AM, Mark Dunning wrote: > Hi all, > > I have just started using the GenomeGraphs package, which I think is a > really good piece of software :) > > I am using the package to plot expression values across a genomic > region. However, it seems to plot all points on the same "track" in > the > same colour? I was wondering if it is possible to use different > colours > to highlight particular probes I am interesting in, (or use different > plotting characters). I thought something like: > > dp=DisplayPars(color=c("red","blue")) might work, but it just produced > one colour. Apologies if there is already the ability to do this, > but I > didn't see anything so far. > > Many thanks, > > Mark > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
ADD COMMENT

Login before adding your answer.

Traffic: 732 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