jpostscript | R Documentation |
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.
jpostscript(file=NULL, P=NULL, w=NULL, h=NULL)
file |
Postscript file name, eps will be added as a suffix |
P |
vector to fix the size, c(width, height) |
w |
width, inches |
h |
height, inches |
If P=c(10,12) is missing or NULL, 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. If either w or h are provided they will override the values in vector P.
Graphical Side Effect
Jonathan M. Lees<jonathan.lees.edu>
par, postscript, device
## Not run:
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()
jpostscript("HiThere", P=c(7,7) )
plot(x,y)
dev.off()
jpostscript("HiThere", P=c(7,7), w=10 )
plot(x,y)
dev.off()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.