Closed naurasd closed 1 year ago
Hi,
It's true that replot()
does not respect xlim
and/or ylim
if they were set in the previous call to plot()
. But, you should avoid to use replot()
non-interactively. Instead, try something like in the example code in ?replot
, such as:
example(replot)
plot(ntz, xy = xy) # suppose this is the plot you want but you need more space on the right-hand side
plot(ntz, xy = xy, xlim = c(1, 12))
Once you found the appropriate values of xlim
and xy
, you can do:
png("............
plot(ntz, xlim = c(1, 12), xy = xy)
dev.off()
Cheers, E.
Thanks for the quick reply on all my questions. this solution worked like a charm ;-)
Hi
I am generating a png file of a haplotype network with the code below:
This generates the following image:
Let's say I just want to shift my nodes along either the y- or x-axis. I am shifting all of my nodes along the y-axis with the following code:
This generates the following image: As you can see, despite neither changing the dimension of the png, nor xlim or ylim, The nodes now appear much larger than before. But to my understanding, all I have done is shifting the entire network up by a value of 10 along the y-axis.
Why does the scale of the nodes change in this case?
Thanks Nauras