Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8567609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:55:18+00:00 2026-06-11T17:55:18+00:00

I use RScript in Windows and by default it saves the plots into the

  • 0

I use RScript in Windows and by default it saves the plots into the pdf file Rplots.pdf, one plot per page.

I would like to get each plot saved into an image file like a .png, is it possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:55:19+00:00Added an answer on June 11, 2026 at 5:55 pm

    To save your plots as a png file, the general idea is:

    png("spam.png")
    plot(...)
    dev.off()
    

    similar functions are jpeg and tiff. Wrap all your plots in such calls to png to save the plots to specific names. Adding png() at the top of the script will save all plots in different png files: Rplot001.png, Rplot002.png. I would however try and give meaningful names to the plots.

    Using Cairo devices, you can use savePlot. When you plot with ggplot2, the best way imo to save a plot is using ggsave.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to use QR-codes to streamline the browsing of certain forums with
I'm trying to make a pdf of a web page that is displaying locations
Alright, I've been working on a userscript that redirects when a specific page is
I read Dive into Greasemonkey (by Mark Pilgrim ) written in 2005. It mentions
I am looking for a quick way to grab some data off of one
I've got a rather hideous and large javascript file that I've inherited from a
I'm using JRI to execute R from Java and I saw that JRI use
I want to do the equivalent of this R script: > csvData <- read.csv(file='/homes/ndeklein/test.csv',
I'm writing a userscript for a website that uses Prototype. Rather than use the
As stated in Why doesn't Firefox support the MP3 file format in <audio> ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.