evolution & bioinformatics

Friday, December 7, 2012

Save R Plot in EPS format


Save R Plot in EPS format

Here is a code example of how to save an R plot in EPS (instead of PS):
postscript(file="testplot.eps",
           paper="special",
           width=10,
           height=10,
           horizontal=FALSE)

yvalues = runif(50)
plot(yvalues)

dev.off()
Posted by Li's blogger at 8:42 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2022 (1)
    • ►  October (1)
  • ►  2017 (1)
    • ►  June (1)
  • ►  2016 (1)
    • ►  December (1)
  • ►  2015 (7)
    • ►  August (1)
    • ►  July (2)
    • ►  May (2)
    • ►  March (2)
  • ►  2014 (5)
    • ►  October (3)
    • ►  April (1)
    • ►  January (1)
  • ►  2013 (20)
    • ►  November (2)
    • ►  July (1)
    • ►  June (2)
    • ►  May (5)
    • ►  April (4)
    • ►  March (4)
    • ►  February (2)
  • ▼  2012 (17)
    • ▼  December (10)
      • heatmap
      • Python: sort a list and change another one consequ...
      • python_course
      • how to get the IDLE in mac
      • python3_learning_1
      • draw a fig with R
      • locator() function in R
      • Save R Plot in EPS format
      • Unix grep to huge number of files
      • 1down vote
    • ►  November (7)

About Me

Li's blogger
View my complete profile
Awesome Inc. theme. Theme images by molotovcoketail. Powered by Blogger.