[R] Make plots with GNUplot. Have anyone tried that?

Paul Murrell p.murrell at auckland.ac.nz
Sun Mar 2 20:09:56 CET 2008


Hi


Louise Hoffman wrote:
> [snip]
>>  Seriously. Be specific if you have a problem. (read the posting guide). R can
>>  also plot. If you don't like R's plots (which I could not understand) you can
>>  export data and import them to gnuplot. So what?
> 
> Okay, my post was not very good.
> 
> The reason (I think) I need GNUplot, is that I would like to include
> the plots from R in a Latex report, where I would like to have all the
> text and equations in the plots with the same font as used in Latex.


Take a look at "Non-standard fonts in PostScript and PDF graphics" in
http://cran.r-project.org/doc/Rnews/Rnews_2006-2.pdf, plus
http://www.stat.auckland.ac.nz/~paul/R/CM/CMR.html

These describe one way to use LaTeX fonts in R plots.

Paul


> So when I read about opening and closing "dev" for making a pdf I
> figured that the plots that R produces are like the once Matlab makes;
> shows what they ought to, nothing more, nothing less.
> 
> So I was wondering if anyone know of an GNUplot friendly format and
> the code that would produce that text file.
> 
> I am new to both R and GNUplot, so I am pure ears if someone knows how
> to make such plots in R.
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/



More information about the R-help mailing list