Re: [R] (x,y) coordinates for grid.text()

From: hadley wickham <>
Date: Tue, 04 Mar 2008 11:18:00 -0600

> When using grid.text it seems my supplied (x,y) coordinates are being
> plotted only in npc (normalized parent coordinates) where (.5,.5) is the
> center of the graph. How do I allow (x,y) to be coordinates corresponding
> to the (x,y) values in the graph? The examples in ?grid.text seem to do
> this. (I think the problem lies in how x and y are defined with respect to
> unit ). Any help much appreciated. Sample code below.

Have you read the documentation for grid.text? You need to read the description of the default.units argument and then read ?unit.



______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 04 Mar 2008 - 17:23:34 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 Tue 04 Mar 2008 - 19:30:19 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive