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

  • Home
  • SEARCH
  • 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 6948089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:46:37+00:00 2026-05-27T13:46:37+00:00

i am plotting some data in R using the following commands: jj = ts(read.table(overlap.txt))

  • 0

i am plotting some data in R using the following commands:

jj = ts(read.table("overlap.txt"))
pdf(file = "plot.pdf")
plot(jj, ylab="", main="")
dev.off()

The result looks like this:

enter image description here

The problem I have is that the pdf file that I get is quite big (25Mb). Is the a way to reduce the file size? JPEG is not an option because I need a vector graphic.

  • 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-05-27T13:46:37+00:00Added an answer on May 27, 2026 at 1:46 pm

    Take a look at tools::compactPDF – you need to have either qpdf or ghostscript installed, but it can make a huge difference to pdf file size.

    If reading a PDF file from disk, there are 3 options for GostScript quality (gs_quality), as indicated in the R help file:

    • printer (300dpi)
    • ebook (150dpi)
    • screen (72dpi)

    The default is none. For example to convert all PDFs in folder mypdfs/ to ebook quality, use the command

    tools::compactPDF('mypdfs/', gs_quality='ebook')

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

Sidebar

Related Questions

I am thinking of using wxMathPlot for plotting/graphing some data that arrives continuously. I
I'm using MATLAB to plot some data. I would like to create the legend
I'm using the core-plot library to do some plotting, and would like to implement
I'm writing some data acquisition software and need a gui plotting library that is
I tried simply plotting some data in R with the y-axis label horizontal and
I am trying to plot some data in Flot that should display x-axis in
I am plotting some curves using twin-axis and also scientific notation. I have set
I have been using mplot3d (part of matplotlib) for some various 3d plotting, and
I am using perl to open a pipe to pgnuplot.exe to output plot commands.
I'm plotting a group of curves, using facet in ggplot2. I'd like to have

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.