[R] export data to gnuplot

Petr Savicky savicky at praha1.ff.cuni.cz
Sun Mar 27 22:23:00 CEST 2011


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?

Hello:

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.



More information about the R-help mailing list