Learn R Programming

RSEIS (version 2.1-6)

jpostscript: Postscript Output

Description

Get file name and recreate plot on a postsctipt device. This program makes an attempt to keep the same size plot as viewed in the screen.

Usage

jpostscript(name, P = NULL)

Arguments

name
Postscript file name
P
vector to fix the size, c(width, height)

Value

  • Graphical Side Effect

Details

If P=c(10,12) is missing, program will attempt to use current plotting region via par to duplicated the size of the postscript device. Must close this device with dev.off() to finish.

See Also

par, postscript, device

Examples

Run this code
jjj = local.file('hi', 'eps')
x= rnorm(10)
y= rnorm(10)

plot(x,y)

print('resize the current plot')

jpostscript(jjj)
plot(x,y)
dev.off()

Run the code above in your browser using DataLab