Hi,

I have to plot a heat map and next to it a lineplot. Unfortunately the
scale is not the same between the two plots (as the heatmap data is binned).

My problem is, that despite the fact the plotted areas (marked by the
heatmap and box of the the default line plot) are essentially very similar,
the coordinate system is slightly shifted.

Below code does not produce as bad results as I have on the screen right
now, but it still shows a significant shift of the first and last axis tick
which in the heatmap/image is far more oriented towards the plots' margins
as compared to the default plot!

par(mfrow=c(2,1))
matrix(rnorm(3600),ncol=60,byrow=T)->x
image(x)
vals<-rnorm(6000)
plot(vals,type="l")


Is there a way how I could control the exact position of the first and last
axis tick more precisely? Of course I will have to adjust these issues
later on dynamically, as it is obviously the size of the grid that make the
problem, as with smaller grid size the first and last axis tick will come
closer to the edges of the plot area!

Right now I'm a bit lost but still I think I might overlook something
pretty simple!
Maxim

	[[alternative HTML version deleted]]

