Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8813603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:53:49+00:00 2026-06-14T03:53:49+00:00

I have a few colors (rgb/hex codes) that I would like to be available

  • 0

I have a few colors (rgb/hex codes) that I would like to be available as defaults. I would like for the colors to be available on startup, without having to run any scripts. In other words, I would like to run the command colors() and have my custom colors show up in the list.

I suspect this list is populated from some file in the R tree, or from some other config file somewhere else. Specifically:

  • What file does R pull the color definitions from?

Relevant data:

> version
               _                            
platform       x86_64-apple-darwin9.8.0     
arch           x86_64                       
os             darwin9.8.0                  
system         x86_64, darwin9.8.0          
status                                      
major          2                            
minor          15.1                         
year           2012                         
month          06                           
day            22                           
svn rev        59600                        
language       R                            
version.string R version 2.15.1 (2012-06-22)
nickname       Roasted Marshmallows
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:53:51+00:00Added an answer on June 14, 2026 at 3:53 am

    You can (if you really want), change the default palette to your own colours. For example,

    (palette(c("yellow", "orange")))
    plot(1:10, col=1:10)
    

    Rather than providing named colours, you could also specify rgb colours using the rgb function. You can add this command to your .Rprofile so it’s available on start-up.

    However, a better idea would be to define your own palette:

    #Put this in your .Rprofile
    mycols = adjustcolor(palette(), alpha.f = 0.3)
    palette(mycols)
    

    That way you don’t over-ride the default. See ?palette for other examples.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a shader that draws particles with solid colors. I would like to
I have few arrays of ccspirit images, these are balloons of different colors, like
I'm using Python and PIL. I have images in RGB and I would like
I would like to have the vertical arrangement of colors in stacked bars match
I have a few buttons on my webpage in different colors. I have one
I have a Color companion object which holds a few useful colors, and I'd
I have few text fields like SSN , phone number and email id. I
I have few graphic effects on image which i am able to run on
I have a iPhone application with a few custom-defined colors for my theme. Since
I have a product table that contains thousands of products. Some products are available

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.