change plot title in DNAcopy multiple plot.type="s"
1
0
Entering edit mode
@stephane-plaisance-vib-6362
Last seen 4.7 years ago

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.

Thanks

 

DNAcopy • 2.4k views
ADD COMMENT
0
Entering edit mode
Gavin Kelly ▴ 680
@gavin-kelly-6944
Last seen 4.0 years ago
United Kingdom / London / Francis Crick…

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 COMMENT

Login before adding your answer.

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