Hi R users,

I find par("pin") is kind of confusing (or maybe just me?). The manual said
it will give " The current plot dimensions, ‘(width,height)’, in inches."
The word "current" is the key here. I thought it would give the dimensions
of the to-be plot, but it actually gives the dimension of the finished plot:

> layout(matrix(c(1,2,3,4), nrow=2), width=c(1,3), height=c(1,3))
> par("pin")
[1] 4.216666 3.721324
> plot(x)
> par("pin")
[1] 0.7194221 0.2223079
> plot(x)
> par("pin")
[1] 0.7194221 3.7213237
> plot(x)
> par("pin")
[1] 4.2166662 0.2223079
> plot(x)


So, if par("pin") doesn't give to-be plot, how can I get its dimension?

Thanks,
Zech

	[[alternative HTML version deleted]]

