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 9144151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:11:58+00:00 2026-06-17T10:11:58+00:00

I would like to import images such as this , so that i can

  • 0

I would like to import images such as this
, so that i can plot another graph over the image as described here and here.

the problem I am having is the graph is not a graphical object with a fixed url, but rather, created by code. I don’t really understand the code behind the image, but have been unable to scrape recreate it using RCurl and XML.

I see two possible options: using R to launch a browser and save image as
or processing properly the code, I imagine somehow like this

URL<-"http://
test<-htmlParese(getURL(url))
xpathSApply(

any thoughts?

  • 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-17T10:11:59+00:00Added an answer on June 17, 2026 at 10:11 am

    The link to the image you want to scrape is not an “xml image”. It is simply a .png file. So, it suffices to save the image to a file, load it into R, and then put it on the plot. Something like this will get you there, but you’ll need to play with it a bit to make it pretty.

    library(png)
    # use the URL from your post, or construct on-the-fly
    url = "http://pulse.blogs.yandex.net/?size=small&charset=utf8&period=20120116-20130116&query0=%D0%BF%D1%83%D1%82%D0%B8%D0%BD"
    download.file(url,destfile='/tmp/test.png',mode='wb')
    xvals=rnorm(10)
    yvals=rnorm(10)
    # just set up an "empty" plot
    plot(xvals,yvals,type='n')
    r = readPNG('/tmp/test.png')
    # read the help for rasterImage for details
    rasterImage(r,-1,-1,1,1)
    # plot the points over the image
    points(xvals,yvals)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I import a CSV file into a MySQL table? I would like
I've been using this little snippet to select random images. However I would like
I have a .jpg image that I would like to convert to Python array,
I am modifying a website on wordpress (codex) and I would like to import
I would like to be able to import TFS tasks / work items into
I would like to know what is the best import strategy within django reusable
The following: >>>import struct >>>struct.unpack('!d', ('40d11998e5035288').decode('hex'))[0] >>> >>>17510.3889778429 I would like to be able
Would like a for loop in jquery so that: For every hover_link: show hidden
Would like to be able to set colors of headings and such, different font
I would like to generate 2D images of 3D books with custom covers on

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.