Hi Marcio, Your friend has given the answer.
x <- rnorm(10) y <- rnorm(10) ind <- c(3,0,1,0,3,0,2,2,0,0) plot(x, y, col = grey(0:max(ind)/max(ind))[ind], pch = 16) Mestat wrote: > > I am working o a scatterplot where I would like to plot the variables > according with another frequency variable. > Regards, Wu ----- A R learner. -- View this message in context: http://r.789695.n4.nabble.com/Scatterplot-Overlap-Frequency-tp2323322p2323349.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@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.