[R] hist-data without plot

2006-03-20 Thread Gottfried Gruber
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
-- 
---
Gottfried Gruber
mailto:[EMAIL PROTECTED]
www: http://gogo.sehrsupa.net

__
R-help@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


Re: [R] hist-data without plot

2006-03-20 Thread Romain Francois
Le 20.03.2006 14:23, Gottfried Gruber a écrit :
 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
   
Hi,

Have you at least read the help page of hist (you are supposed to)
?hist
If you did, do it again and you'll be able to answer your question

Romain

-- 
visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
Discover the R Movies Gallery : http://addictedtor.free.fr/movies
+---+
| Romain FRANCOIS - http://francoisromain.free.fr   |
| Doctorant INRIA Futurs / EDF  |
+---+

__
R-help@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


Re: [R] hist-data without plot

2006-03-20 Thread Petr Pikal
From help page

If plot=TRUE, the resulting object of class histogram is plotted by 
plot.histogram, before it is returned. 

HTH
Petr


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

From:   Gottfried Gruber [EMAIL PROTECTED]
To: r-help r-help@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
 -- 
 ---
 Gottfried Gruber
 mailto:[EMAIL PROTECTED]
 www: http://gogo.sehrsupa.net
 
 __
 R-help@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

Petr Pikal
[EMAIL PROTECTED]

__
R-help@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


Re: [R] hist-data without plot

2006-03-20 Thread Adaikalavan Ramasamy
hist(data, plot=FALSE)$counts


On Mon, 2006-03-20 at 14:23 +0100, Gottfried Gruber wrote:
 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

__
R-help@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


Re: [R] hist-data without plot

2006-03-20 Thread TEMPL Matthias
Look at:
?hist

z = hist(data, plot=FALSE)

Best,
Matthias

 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
 -- 
 ---
 Gottfried Gruber
 mailto:[EMAIL PROTECTED]
 www: http://gogo.sehrsupa.net
 
 __
 R-help@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


__
R-help@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


Re: [R] hist-data without plot

2006-03-20 Thread Bernd Weiss
On 20 Mar 2006 at 14:23, Gottfried Gruber wrote:

From:   Gottfried Gruber [EMAIL PROTECTED]
To: r-help r-help@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

__
R-help@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


Re: [R] hist-data without plot

2006-03-20 Thread Uwe Ligges
Gottfried Gruber wrote:

 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?


Yes, as mentioned in ?hist

Uwe Ligges




 many thanks,
 best regards gg

__
R-help@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