Re: [R] export data to gnuplot

From: Petr Savicky <>
Date: Sun, 27 Mar 2011 22:23:00 +0200

On Sun, Mar 27, 2011 at 10:12:38PM +0300, Denis Kazakiewicz wrote:
> Hello
> How to export data frame to file which can be used by gnuplot?


Try the following

  write.table(dat, file="out.txt", row.names=FALSE, col.names=FALSE, quote=FALSE)

This will save a space delimited file. I am not using gnuplot for a long time, but i think a space delimited file can be used.

Hope this helps.

Petr Savicky. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sun 27 Mar 2011 - 20:28:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 27 Mar 2011 - 21:50:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive