[R] childNames for xaxis grob (grid package)

From: Tobias Verbeke <tobias.verbeke_at_telenet.be>
Date: Wed, 09 Jul 2008 13:00:08 +0200


Dear list,

Can someone explain why the childNames below gives

character(0)

instead of the (canonical) names of the children grobs of the xaxis gTree ?

[1] "major" "ticks" "labels"

Many thanks in advance,
Tobias

### minimal example code ###

library(grid)
pushViewport(plotViewport(c(5,4,4,2)))
pushViewport(dataViewport(1:5, 1:5))

grid.points(1:5, 1:5)
grid.xaxis(name = "xa")
grid.get("xa")

childNames(grid.get("xa"))

### sessionInfo() ###

> sessionInfo()

R version 2.7.1 (2008-06-23)
i486-pc-linux-gnu

locale:
en_US.UTF-8

attached base packages:
[1] grid stats graphics grDevices utils datasets methods [8] base



R-help_at_r-project.org mailing list
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. Received on Wed 09 Jul 2008 - 11:10:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 10 Jul 2008 - 05:31:46 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive