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:gottfried.gruber at terminal.at www: http://gogo.sehrsupa.net
>From help pageIf 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 <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 > -- > --------------------------------------------------- > Gottfried Gruber > mailto:gottfried.gruber at terminal.at > www: http://gogo.sehrsupa.net > > ______________________________________________ > 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.htmlPetr Pikal petr.pikal at precheza.cz
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:gottfried.gruber at terminal.at > www: http://gogo.sehrsupa.net > > ______________________________________________ > 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 >
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 | +---------------------------------------------------------------+
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
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
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