Re: [R] problem understanding grid coordinate systems

2015-07-15 Thread Johannes Huesing

Paul Murrell p...@stat.auckland.ac.nz [Wed, Jul 15, 2015 at 11:12:33PM CEST]:
...

downViewport(plot_01.panel.1.1.vp)

...

This works like a charm. Thank you!

Upon reading more of the documentation, I found that current.vpTree() shows all 
names of active viewports.

--
Johannes Hüsing   There is something fascinating about science. 
  One gets such wholesale returns of conjecture 
mailto:johan...@huesing.name  from such a trifling investment of fact.
http://derwisch.wikidot.com (Mark Twain, Life on the Mississippi)


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

[R] problem understanding grid coordinate systems

2015-07-13 Thread Johannes Huesing


According to R Graphics by Paul Murrell, the coordinates that were used for 
the
most recent lattics plot can be retrieved with native units.

I have difficulties to access these coordinates. The following code
renders the following results:


library(grid)
library(lattice)
pl - xyplot(1:10 ~ 10:1)
print(pl)
convertX(unit(.9, npc), native)

[1] 605.7native

 R version 3.0.2 (2013-09-25)

I had expected something around 9.5 in native coordinates. The result
looks more like raw coordinates, which might be what is meant by
native. Which coordinate system do I have to address instead?



--
Johannes Hüsing

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

[R] problem understanding grid coordinate systems

2015-07-08 Thread Johannes Huesing

According to R Graphics by Paul Murrell, the coordinates that were used for 
the
most recent lattics plot can be retrieved with native units.

I have difficulties to access these coordinates. The following code 
renders the following results:



library(grid)
library(lattice)
pl - xyplot(1:10 ~ 10:1)
print(pl)
convertX(unit(.9, npc), native)

[1] 605.7native

R.version
   _   
platform   i686-pc-linux-gnu   
arch   i686
os linux-gnu   
system i686, linux-gnu 
status 
major  3   
minor  0.2
year   2013
month  09
day25  
svn rev63987
language   R   
version.string R version 3.0.2 (2013-09-25)

nickname   Frisbee Sailing

I had expected something around 9.5 in native coordinates. Which coordinate
system do I have to address instead?

--
Johannes Hüsing

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

[R] problem understanding grid coordinate systems

2015-07-06 Thread Johannes Huesing

According to R Graphics by Paul Murrell, the coordinates that were used for 
the
most recent lattics plot can be retrieved with native units.

I have difficulties to access these coordinates. The following code 
renders the following results:



library(grid)
library(lattice)
pl - xyplot(1:10 ~ 10:1)
print(pl)
convertX(unit(.9, npc), native)

[1] 605.7native

R.version
   _   
platform   i686-pc-linux-gnu   
arch   i686
os linux-gnu   
system i686, linux-gnu 
status 
major  3   
minor  0.2 
year   2013
month  09  
day25  
svn rev63987   
language   R   
version.string R version 3.0.2 (2013-09-25)
nickname   Frisbee Sailing 


I had expected something around 9.5 in native coordinates. Which coordinate
system do I have to address instead?

--
Johannes Hüsing   There is something fascinating about science. 
  One gets such wholesale returns of conjecture 
mailto:johan...@huesing.name  from such a trifling investment of fact.
http://derwisch.wikidot.com (Mark Twain, Life on the Mississippi)


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.