Im doing a plot where i look at clusters of data with circles indicating how big the cluster is: palette(rainbow(1000, end = 0.9)) symbols(data$lab, data$bak, circles = var21, main = "Circles Plot", fg "grey", bg = 1:1000) As i have lots and lots of data points to plot i get alot of circles. The problem is that wjen i use colour in the circles the big circles cover up the smaller ones sitting underneath. What i really want is different sizes of circles to have different colours. Any ideas how to fix this??? -- View this message in context: http://n4.nabble.com/symbols-plots-with-circles-tp964686p964686.html Sent from the R help mailing list archive at Nabble.com.
On 12/16/2009 08:47 AM, DispersionMap wrote:> > Im doing a plot where i look at clusters of data with circles indicating how > big the cluster is: > > palette(rainbow(1000, end = 0.9)) > symbols(data$lab, data$bak, circles = var21, main = "Circles Plot", fg > "grey", bg = 1:1000) > > > As i have lots and lots of data points to plot i get alot of circles. > > The problem is that wjen i use colour in the circles the big circles cover > up the smaller ones sitting underneath. > > What i really want is different sizes of circles to have different colours. > > >Hi DispersionMap, Try this: symbols(data$lab,data$bak,circles=var21,main="Circles Plot", fg=1:1000) But with 1000 circles, I think the plot is going to be a bit messy anyway. Jim
On 12/16/2009 08:47 AM, DispersionMap wrote:> > Im doing a plot where i look at clusters of data with circles indicating how > big the cluster is: > > palette(rainbow(1000, end = 0.9)) > symbols(data$lab, data$bak, circles = var21, main = "Circles Plot", fg > "grey", bg = 1:1000) > > > As i have lots and lots of data points to plot i get alot of circles. > > The problem is that wjen i use colour in the circles the big circles cover > up the smaller ones sitting underneath. > > What i really want is different sizes of circles to have different colours. > > >Apologies, I forgot about the color/size relationship. See below. Hi DispersionMap, Try this: library(plotrix) symbols(data$lab,data$bak,circles=var21,main="Circles Plot", fg=color.scale(var21,extremes=c("green","red"))) But with 1000 circles, I think the plot is going to be a bit messy anyway. Jim