Hi, I am working my way through the examples given in the R manual, and I am now at the hist-plot of the eruptions data set. The question I have is as follows: I truly like the hist(thing, seq(a,b,c), prob=TRUE) thingy, but ... I would rather plot that with gnuplot than with R. (First, it looks nicer :-), second, all my other graphs are in gnuplot, third, all my scripts work with gnuplot). Now can I somehow get the data pairs created by this command into a file? That would be really nice ... ! Thanks for help & greetings, Axel.
On Wed, 19 Jan 2005 12:03:01 +0100, Axel Bock <news-and-lists at the-me.de> wrote :>Hi, I am working my way through the examples given in the R manual, and I am >now at the hist-plot of the eruptions data set. > >The question I have is as follows: I truly like the > hist(thing, seq(a,b,c), prob=TRUE) >thingy, but ... I would rather plot that with gnuplot than with R. (First, it >looks nicer :-), second, all my other graphs are in gnuplot, third, all my >scripts work with gnuplot). > >Now can I somehow get the data pairs created by this command into a file? That >would be really nice ...When you call hist, it returns a list of things that are necessary to reproduce the plot. Try printing it using print(hist( ... )), and you should be able to see which component contains the numbers you want to send to gnuplot. Duncan Murdoch
Axel Bock wrote:> Hi, I am working my way through the examples given in the R manual, and > I am now at the hist-plot of the eruptions data set. > > The question I have is as follows: I truly like the > hist(thing, seq(a,b,c), prob=TRUE) > thingy, but ... I would rather plot that with gnuplot than with R. > (First, it looks nicer :-), second, all my other graphs are in gnuplot, > third, all my scripts work with gnuplot). > > Now can I somehow get the data pairs created by this command into a > file? That would be really nice ... !Example: histogramObject <- hist(1:10, plot=FALSE) histogramObject Uwe Ligges> > Thanks for help & greetings, > > Axel. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html