# convertXY

##### Convert between Graphics Coordinate Systems

Convert between graphics coordinate systems.

- Keywords
- dplot

##### Usage

```
grconvertX(x, from = "user", to = "user")
grconvertY(y, from = "user", to = "user")
```

##### Arguments

- x, y
- numeric vector of coordinates.
- from, to
- character strings giving the coordinate systems to convert between.

##### Details

The coordinate systems are

`"user"`

- user coordinates.
`"inches"`

- inches.
`"device"`

- the device coordinate system.
`"ndc"`

- normalized device coordinates.
`"nfc"`

- normalized figure coordinates.
`"npc"`

- normalized plot coordinates.
`"nic"`

- normalized inner region coordinates. (The ‘inner region’ is that inside the outer margins.)

`pdf`

and `postscript`

).
##### Value

A numeric vector of the same length as the input.

##### Examples

`library(graphics)`

```
op <- par(omd=c(0.1, 0.9, 0.1, 0.9), mfrow = c(1, 2))
plot(1:4)
for(tp in c("in", "dev", "ndc", "nfc", "npc", "nic"))
print(grconvertX(c(1.0, 4.0), "user", tp))
par(op)
```

*Documentation reproduced from package graphics, version 3.3.2, License: Part of R 3.3.2*

### Community examples

Looks like there are no examples yet.