Hi there,
I am trying to plot z values using Circle symbol. Each x and y has a value
which will be plotted using a circle where circle's radius is corrlated
with the value of z.
I wrote the code , but unable to change the size of circle no matter what I
chose for Scale. Any help please?
x=c(84390255386 ,84390255386, 78028317380 ,53594648044,422)
y=c(949849442 ,941645043, 840135292, 74, 821632939)
z=c(0.005641896, 0.005641896 ,0.005641896, 0.007978846,0.007978846)
convertToRadius<-function(x){return(sqrt(x/pi))}
scale=0.3
xlims =c(min(x),max(x))
ylims =c(min(y),max(y))
z=convertToRadius(z)*scale
symbols(x,y, circles=z, fg='red')
thanks
Alireza
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
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.