Closed the-x-at closed 5 years ago
passing main
down to haplopaint with the -family
parameter. Will check if that needs eventually special formatting.
OK, plot.pedigree
from the kinship2
package simply ignores the main
parameter. No way we can define a title in plots created with that (will change the documentation on that).
Re haplopaint, I am now quoting the -family
command line parameter. It should work now (version 1.9.1), but I can't verify because haplopaint is missing a lot of dependencies on my system - @the-x-at can you please check?
The haplopainter
script expects a family number as parameter to option -family
. This will not work for supplying generic text. I checked the haplopainter source, there is no way to add a plot title from the command line. It can only be done in the GUI with Options->Configuration->Ped & Case Info->Title.
Now, that neither haplopainter
nor the kinship2
plotting functions accept a title, I recommend to remove option main=
from the plotting options for doPlotPed
.
Alternatively, I could modify haplopainter
source code to accept an option -title
.
OK, then I'll remove the main
parameter.
According to the documentation of
plotPed
, argumentmain
should be passed on todoPlotPed
, where it is explicitly listed as an argument (main=NULL
). Using this argument results in undesired behavior, as demonstrated by the following example:Use of
main="My title"
in plotting modehaplopaint
causes an error message and no plot output file is generated.Use of
main="My title"
in plotting modeks2paint
does not show the text in the plot.Not using
main
option in plotting modehaplopaint
outputs by default the family number.FamAgg version 1.8.0 was used.