Question: change plot title in DNAcopy multiple plot.type="s"
gravatar for Stephane Plaisance | VIB |
11 months ago by

I finally made it to the 24chr DNAcopy multiplot but as my chromosomes are already named chr1 ... I get plot titles like 'Chromosome chr1' which is not nice and too long to see the actual chr number. Ideally, I would like to not print 'Chromosome'

Is it possible to substitute the plot titles with a vector of names.

my current command is:

  # one plot per chromosome in mosaic

  plot(segment, plot.type="s")

I tried 'main' and 'title' which have no effect.  Can I also remove index below each plot, I tried xlab without success here too.



ADD COMMENTlink modified 11 months ago by Gavin Kelly560 • written 11 months ago by Stephane Plaisance | VIB |50
gravatar for Gavin Kelly
11 months ago by
Gavin Kelly560
United Kingdom / London / Francis Crick Institute
Gavin Kelly560 wrote:

If we examine the source code of plot.DNAcopy then it appears the 'main' argument is hard-wired in.  My only suggestion is to copy the source into your own function, and modify the behaviour to give you want you want - I don't know of a way to capture the make-up of a base plot in a way that it can be programmatically altered after it has been generated.

ADD COMMENTlink written 11 months ago by Gavin Kelly560
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 163 users visited in the last hour