[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
Re: [R] hist-data without plot
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
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
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
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
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
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