is a little bit too large for
that. Next time probably i will do better.
Thanks again,
Monica
Date: Mon, 5 Sep 2011 14:56:10 +0530
Subject: Re: [R] Getting the values out of histogram (lattice)
From: deepayan.sar...@gmail.com
To: rolf.tur...@xtra.co.nz; pisican...@hotmail.com
CC: mac
On Thu, Sep 1, 2011 at 10:29 AM, Rolf Turner rolf.tur...@xtra.co.nz wrote:
'Scuse me, but I don't see anything in your example relating to what the OP
asked for. She wanted to get at the ``actual data defining the histogram'',
which
I interpret as meaning the bar heights (the percentages,
On 05/09/11 21:26, Deepayan Sarkar wrote:
SNIP
1. The `official' way to get panel arguments is trellis.panelArgs(); e.g.,
p- histogram(~rnorm(100) | gl(2, 50), type = density)
str(trellis.panelArgs(p, 2))
List of 5
$ x : num [1:50] 0.277 1.144 1.13 -0.912 -0.892 ...
$ breaks
Hi,
I have a relatively big dataset and I want to construct
some histograms using the histogram function in lattice. One thing I am
interested in is to look at differences between density and percent. I know I
can
use the hist function but it seems that this function gives sometimes some
Hi Monica
An example abbreviated from ?histogram
x = histogram( ~ height, data = singer)
names(x)
# to see what is there
str(x)
# information
x$panel.args.common
$breaks
[1] 59.36 61.28 63.20 65.12 67.04 68.96 70.88 72.80 74.72 76.64
$type
[1] percent
$equal.widths
[1] TRUE
$nint
[1] 9
I'm not entirely sure that I understand what your problem is.
A reproducible example would probably have helped.
However I conjecture that the problem boils down to confusing
probability with probability *density*.
Percentages are the (estimated) bin probabilities times 100.
The percentage for
'Scuse me, but I don't see anything in your example relating to what the OP
asked for. She wanted to get at the ``actual data defining the
histogram'', which
I interpret as meaning the bar heights (the percentages, density values,
or counts,
depending on type). These do not appeared to be
7 matches
Mail list logo