Re: [R] Color of points in legend() ignored if plotting to PNG

2016-03-01 Thread Helmut Schütz
Hi Boris, Jim, Petr, and David, I stand corrected; works as desired. In order to come up with an example I oversimplified my original code which contained lwd=0 in the legend. lwd=0 indeed switches the 'borders' of points off. Case closed. Helmut -- Ing. Helmut Schuetz BEBAC - Consultancy

Re: [R] Color of points in legend() ignored if plotting to PNG

2016-02-29 Thread David L Carlson
Using png("foo.png", 1200, 1200, res=200) x <- rnorm(10) y <- rnorm(10) plot(x, y, pch = 21, cex = 1.5, xlim = range(x, y) * 1.2, ylim = range(x, y)*1.2, col = "black", bg = "lightgrey") legend("topleft", legend = "foo", inset = 0.02, bg = "white", pch = 21, pt.cex = 1.5, col =

Re: [R] Color of points in legend() ignored if plotting to PNG

2016-02-29 Thread PIKAL Petr
Hi Works on WXP too. platform i386-w64-mingw32 arch i386 os mingw32 system i386, mingw32 status Under development (unstable) major 3 minor 3.0 year 2015 month 06 day15 svn rev68521 language

Re: [R] Color of points in legend() ignored if plotting to PNG

2016-02-28 Thread Jim Lemon
Works on linux R version 3.2.3 (2015-12-10) Platform: x86_64-redhat-linux-gnu (64-bit) Running under: Fedora 23 (Twenty Three) Jim On Mon, Feb 29, 2016 at 1:45 AM, Boris Steipe wrote: > Works for me on Mac OS... > > R version 3.2.2 (2015-08-14) > Platform:

Re: [R] Color of points in legend() ignored if plotting to PNG

2016-02-28 Thread Boris Steipe
Works for me on Mac OS... R version 3.2.2 (2015-08-14) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.9.5 (Mavericks) [...] On Feb 28, 2016, at 8:02 AM, Helmut Schuetz wrote: > Dear all, > > if I plot to a PNG, the color of filled points (pch

[R] Color of points in legend() ignored if plotting to PNG

2016-02-28 Thread Helmut Schuetz
Dear all, if I plot to a PNG, the color of filled points (pch 21:25) in legend() is ignored (i.e., only the background color is used). It does not matter whether I specify the default png(bg="white") or png(bg="transparent"). The example below x <- rnorm(10) y <- rnorm(10) plot(x, y, pch =