eps rotated

89 views
Skip to first unread message

Ben

unread,
Nov 29, 2011, 2:47:49 PM11/29/11
to Deducer
hi ian
i am using deducer 0.4-4 and i really love it
when i use the plot window to save a file as eps format, the graphic
comes out rotated -90 degrees.
it's not straightforward to rotate eps files back!
can you help me out on this one?
what command are you running in the background?

i have been able to 'print' directly to pdf etc like this:

pdf('file.pdf')
print (ggplot()+ ....)
dev.off()

but havent seen similar for eps.

any help most appreciated and thanks again for deducer

Ian Fellows

unread,
Nov 29, 2011, 3:11:28 PM11/29/11
to ded...@googlegroups.com
The default is to print in the landscape orientation. You can use the
following to get non-landscape plots:

postscript("plot.eps",horizontal=FALSE)
plot(1:10)
dev.off()


Ian

Ben

unread,
Dec 1, 2011, 11:02:15 AM12/1/11
to Deducer
thanks ian

the postscript command works just fine. and of note if i invoke
horizontal=FALSE then i get a potrait sized figure but the axes are
correctly aligned.

could there be a little bug in the 'Save As EPS' in the Java plot
display window? the entire figure is printed 'as if' landscape but is
then rotated by 90 degrees anticlockwise such that the x-axis is
vertical on the right and the y axis horizontal at the bottom.

i'd be happy to post the eps files here but i dont see how one does
that - if you like i can email them to you.

ben

Ian Fellows

unread,
Dec 2, 2011, 3:33:17 AM12/2/11
to ded...@googlegroups.com
After some thought I've decided that this is at least close to a bug.
I've changed the orientation of saving to eps on the development
server, and it will be pushed to CRAN on the next release of JGR

ian

Ben Fox

unread,
Dec 2, 2011, 9:34:33 AM12/2/11
to ded...@googlegroups.com
great. in the meantime at least we have the hand-coded solution on this site.
thanks again for deducer!
ben
Reply all
Reply to author
Forward
0 new messages