Examples for 'graphics::plot.window'


Set up World Coordinates for Graphics Window

Aliases: plot.window xlim ylim asp

Keywords: aplot

### ** Examples

##--- An example for the use of 'asp' :
require(stats)  # normally loaded
loc <- cmdscale(eurodist)
rx <- range(x <- loc[,1])
ry <- range(y <- -loc[,2])
plot(x, y, type = "n", asp = 1, xlab = "", ylab = "")
abline(h = pretty(rx, 10), v = pretty(ry, 10), col = "lightgray")
text(x, y, labels(eurodist), cex = 0.8)
plot of chunk example-graphics-plot.window-1

[Package graphics version 4.2.3 Index]