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

  • SEARCH
  • Home
  • 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 7978357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:28:26+00:00 2026-06-04T09:28:26+00:00

My data set looks like this: x: Date variable value 1/1/2012 A 10 1/1/2012

  • 0

My data set looks like this:
x:

Date       variable     value
1/1/2012   A             10
1/1/2012   B             10
1/1/2012   C             10
1/1/2012   D             10
1/2/2012   A             10
1/2/2012   B             10
1/2/2012   C             10
1/2/2012   D             10
1/3/2012   A             10
1/3/2012   B             10
1/3/2012   C             10
1/3/2012   D             10

I am doing this:

rhg_cols1<- c("#000000","#F8766D","#7CAE00","#00BFC4","#C77CFF" ) 
ggplot(x, aes(Date, value, fill = variable, colour=variable)) +     geom_point()+     scale_fill_manual(values = rhg_cols1)

I am still seeing the default color. Can anybody tell me what is wrong? Better yet, rather than giving the specific colors as in rhg_cols1, I like to say low=red, high=black.

any input is very appreciated.

  • 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-04T09:28:28+00:00Added an answer on June 4, 2026 at 9:28 am

    You want to use

    + scale_colour_manual(values=rhg_cols1)
    

    To set low and high colors you can use the scale_XXXX_gradient() function.

    + scale_colour_gradient(low="#000000", high="#C77CFF")
    

    An example using scale_XXXX_gradient is here.

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

Sidebar

Related Questions

Given a data set like this; +-----+---------------------+--------+ | id | date | result |
I have data that looks like this: > head(data) date price volume 1 2011-06-26
Ok, got a tricky one here... If my data looks like this: Table1 ID
This is Sql Server 2008. I've got a set of data that looks something
I have a table code_prices that looks something like this: CODE | DATE |
The XML dataset file after I add it to a DataSet looks like this:
I'm researching Medical Data set which includes variable concerning illnesses and treatment type. For
Given a simple data set, I would like to be able to calculate a
I'm getting a data set that's formatted as a list of key-value pairs. The
I have a table of results that looks like this: score_id, uid, af_id, level,

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.