Register a domain and help support LQ
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-17-2012, 10:01 PM   #1
Senior Member
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie stretch
Posts: 1,480

Rep: Reputation: 86
R statistical package and gnuplot


I want to export R plot to gnuplot for flexibility.

Debian wheezy. R and gnuplot are downloaded from its repository (r-base..., gnuplot...)

After drawing a scatterplot, I would like to export it to gnuplot. (spread lines, please) The function scatterplot() returns nothing informative, unlike lm().

What I did:
Checked R-manual for output options, however, I cannot locate them. For Dogpile, "R" is too short for searching.

Has anybody ever run into this situation?

Closing remark:
Thank you very much for your reading my post, which is not Linux specific. Have a nice Penguin!

Old 12-18-2012, 09:07 AM   #2
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Everything should be possible from within R .
what exactly do you want to do?

help.start() should be helpful.

scatter.smooth() in stats
smoothScatter() in graphics
see library lattice
There are many other libraries ...see taskview in r website
Old 12-18-2012, 09:52 AM   #3
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
I don't really know a darn thing about R, but I've used gnuplot quite a bit. gnuplot wants to import data, not any kind of existing plot files. I think you need to focus on the problem from that viewpoint. A google search for "'r language' export data" turns up an abundance of hits. A couple that I visited seem to have useful instructions.

--- rod.
Old 12-18-2012, 08:36 PM   #4
Senior Member
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie stretch
Posts: 1,480

Original Poster
Rep: Reputation: 86

Thanks guys.

amani: What I want to do is fine formatting. I will check libraries suggested by you.

theNbomr: Yes, you are right. I did not describe enough at post #1. I have no problem with original data. I was looking for data points of mean/spread lines (could be data for spline?) to export. Currently, I found that it could be possible to tweak PostScript output by dev.print().

The problem here is that I am not familier with R plot and "gnuplot" has been my tool.

Have a happy Penguin!



data, export, format, plot, statistics

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistical applications onyangoliech Linux - Software 3 02-04-2007 11:38 PM
OpenSource Statistical Package smiley_lauf Linux - Software 4 03-12-2006 12:18 PM
Need help on statistical info denissca Linux - General 2 01-21-2006 11:23 PM
I need gnuplot 4.0.0 package that is compatible with redhat 9 janetcole Linux - Software 1 08-15-2005 03:31 PM
statistical packages tireseas Linux - Software 6 02-01-2004 04:33 AM

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration