[R] help with hist-plots?

Duncan Murdoch murdoch at stats.uwo.ca
Wed Jan 19 12:43:11 CET 2005


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




More information about the R-help mailing list