[R] smoothScatter problems

Jeroen van der Ham vdham at uva.nl
Sun Jul 26 19:16:28 CEST 2009


Hello,

I'm having some trouble getting a good result for a smoothScatter plot.
I have some data that I want to log-plot, but when I use smoothScatter
the result is not correct.
The problem seems to be that with the log="x" argument smoothScatter
calculates the bins linearly, so the plot will be skewed towards the right.

See for example:

file("http://dckd.nl/~jeroen/drop/example.rdata")
smoothScatter(d,log="x")
smoothScatter(log(d$x),d$y)

I could also use the latter way to produce the result, but I would like
to use the original units on the x-axis, not the log units.

I also want to use these results in a publication, but the PDFs saved
from these results are not very nice. With Acrobat there are lots of
"blocks", and with other viewers there are many white lines through the
blue colours.

Thanks,
Jeroen.




More information about the R-help mailing list