I'd like to change the Color palette on startup of R. Thus I copied the following source-code to my .Rprofile
palette(c(
"#2e3436" # (Aluminium 6)
, "#ef2929" # (Scarlet Red 1)
, "#73d216" # (Chameleon 2)
, "#3465a4" # (Sky Blue 2)
, "#fcaf3e" # (Orange 1)
, "#ad7fa8" # (Plum 1)
, "#babdb6" # (Butter 1)
, "#babdb6" # (Aluminium 3)
))
On startup of R the following message shows up:
Error: Could not fine the function 'palette'
Is it not possible to change the palette on startup?
library(grDevices)
before that? – Julián UrbanogrDevices
before callingpalette()
) – R_User