[R] Frequency plot --- stacked symbols
Eik Vettorazzi
E.Vettorazzi at uke.uni-hamburg.de
Tue Feb 8 11:57:46 CET 2011
Hi David,
you can use base 'stripchart'
stripchart(rbinom(100,size=10,p=.3),method="stack",pch=21,at=0,bg="lightblue",col="blue",offset=.5,cex=1.5,xlim=c(0,10))
and set 'pch' as you wish, e.g. as in
example(points)
hth.
Am 08.02.2011 08:27, schrieb David Arnold:
> Hi,
>
> We were wondering how we could make a stacked frequency diagram such as this one:
>
> http://msemac.redwoods.edu/~darnold/math15/liz.pdf
>
> We don't necessarily need the shaded "balls", other characters would be fine, such as stacks of x's.
>
> David
> ______________________________________________
> R-help at 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.
--
Eik Vettorazzi
Institut für Medizinische Biometrie und Epidemiologie
Universitätsklinikum Hamburg-Eppendorf
Martinistr. 52
20246 Hamburg
T ++49/40/7410-58243
F ++49/40/7410-57790
More information about the R-help
mailing list