[R] hist-data without plot

Bernd Weiss bernd.weiss at uni-koeln.de
Mon Mar 20 15:00:28 CET 2006


On 20 Mar 2006 at 14:23, Gottfried Gruber wrote:

From:           	Gottfried Gruber <ggruber at terminal.at>
To:             	r-help <r-help at stat.math.ethz.ch>
Date sent:      	Mon, 20 Mar 2006 14:23:26 +0100
Subject:        	[R] hist-data without plot

> hello,
> 
> i need the data from hist() but i do not want the plot.
> e.g.
> z=hist(data)$counts  #returns absolute  frequency
> 
> but when i execute this command the plot occurs also. is it possible
> to 
> suppress the plot?
> 
> many thanks,
> best regards gg
> -- 

?hist

and see argument "plot":

 plot: logical.  If 'TRUE' (default), a histogram is plotted,
          otherwise a list of breaks and counts is returned.

HTH,

Bernd




More information about the R-help mailing list