Hi,
This was a terrific suggestion. I'm no expert in R, but I managed to find and
read the axis command to do the following.
x=c(rep(2,14),rep(4,13),rep(6,11),rep(8,4),rep(10,3),rep(12,2),14,16,18)
stripchart(x,method="stack",pch=21,at=0,bg="lightblue",col="blue",offset=.5,cex=1.5,xlab="Bag
B"
Hi,
either upscale the circles (increase cex) or narrow your plot, as in
x11(3,5)
stripchart(x,method="stack",pch=21,at=0,bg="lightblue",col="blue",offset=.5,cex=1.5,xlab="Bag
B",frame.plot=FALSE,axes=FALSE)
there's a trade off between 'closing the gap' and having all your ticks
readable, so just
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 ho
David Arnold wrote:
> We were wondering how we could make a stacked frequency diagram such as
> this one:
>
> http://msemac.redwoods.edu/~darnold/math15/liz.pdf
See the ‘dots’ function in the ‘TeachingDemos’ package or the ‘dotPlot’ (not
to be confused with ‘dotplot’) function in the ‘BHH2’ pac
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-
5 matches
Mail list logo