On Thu, Oct 30, 2008 at 3:49 AM, ONKELINX, Thierry
<[EMAIL PROTECTED]> wrote:
> Dear Bernd,
>
> AFAIK you can only get counts, densitys, counts scale to a maximum of 1
> and likewise densitys. But you can alter the labels on the scales
> manually.

Well, a proportion is just the count divided by the total count, so
you should be able to do:

qplot(carat, ..count.. / sum(..count..), data=diamonds, geom="histogram")

but unfortunately a bug seems to have crept into the latest version
and this doesn't work.

Hadley

-- 
http://had.co.nz/

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to