suppose I have the following data
x-c(rep(.1,5),rep(.2,6),rep(.4,10),rep(.5,20))
y-c(rep(.5,3),rep(.6,8),rep(1.2,8),rep(2.5,18),rep(3,4))
If I plot(x,y) in R, I will only get seven distinct
points. What I want to do is to use different symbols
to show the frequency at each point.
e.g. if the
You might consider one of these approaches instead:
plot(jitter(x), jitter(y))
or
pdf(file=c:/AlphaExample.pdf, version = 1.4)
plot(x, y, col = rgb(1, 0, 0, .2), pch = 16)
dev.off()
Kerry Bush wrote:
suppose I have the following data
x-c(rep(.1,5),rep(.2,6),rep(.4,10),rep(.5,20))
Group by which variable ? If you mean the joint distribution of 'x' and
'y' then something along the following lines
x - rep( c(0.1, 0.2, 0.4, 0.5), c(5, 6, 10, 20) )
y - rep( c(0.5, 0.6, 1.2, 2.5, 3.0), c(3, 8, 8, 18, 4) )
new - factor( paste(x, y, sep=_) )
tb - table(new)
Thank you.
But I only need three classes of freqnencies (in
another words, only three kinds of symbols) for 1-5,
5-10 and above 10, not to use different symbols for
different frequencies. Otherwise, clearly R will run
out of available symbols and the plot is also hard to
view.
Thank you anyway.
On Mon, 2005-08-08 at 11:57 -0700, Kerry Bush wrote:
suppose I have the following data
x-c(rep(.1,5),rep(.2,6),rep(.4,10),rep(.5,20))
y-c(rep(.5,3),rep(.6,8),rep(1.2,8),rep(2.5,18),rep(3,4))
If I plot(x,y) in R, I will only get seven distinct
points. What I want to do is to use different
Remove the '6' from the code that contains 'cut'. I am not sure how it
crept into my code. Then you should have the following mapping
Freqpch code
1-5 1
6-102
11- 3
I am more concerned about viewers getting confused with many symbols
than running
On Mon, Aug 08, 2005 at 03:17:44PM -0400, Chuck Cleland wrote:
You might consider one of these approaches instead:
plot(jitter(x), jitter(y))
or
pdf(file=c:/AlphaExample.pdf, version = 1.4)
plot(x, y, col = rgb(1, 0, 0, .2), pch = 16)
dev.off()
sunflowerplot() is also useful for