On Thu, Apr 24, 2014 at 09:22:40PM -0400, Simon Urbanek wrote:
> The bottom line is that you probably don't want to set the palette
> if you don't have a device that could be used.
Ok. In my testing so far, it seems all I need is a simple little
function that does:
pdf(); nn <- dev.cur(); rr
Andrew,
palette is a property recorded in the graphics device* and therefore R will
create a new device (see dev.new()) if only the null device is open. Which
device is really up to your settings, so you could adjust your preferred device
depending on what you want it to be.
The bottom line is
The fundamental problem here seems to be a change (probably a bug) in
the behavior of palette(). In R 3.1.0, calling palette() opens a new
X window (on Linux)! That seems like a bug, as I can't think of any
good reason for it to open a window, and it never did in any of the
2.x versions of R I've
For many years, when my R process starts up I've been automatically
setting my preferred default plot colors, basically like so:
my.colors <-
c("black" ,"red" ,"gold" ,"sky blue" ,"green" ,"blue" ,"orange"
,"grey" ,"hot pink" ,"brown" ,"sea green" ,"cyan" ,"purple" ,"tomato1")
requ