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 6786763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:17:02+00:00 2026-05-26T17:17:02+00:00

Using version.string R version 2.11.0 (2010-04-22) quantmod 0.3-17 Windows XP When using the chartSeries

  • 0

Using version.string R version 2.11.0 (2010-04-22)
quantmod “0.3-17”
Windows XP

When using the chartSeries function in quantmod with type="line" the line color that is displayed on the chart is green. I would like to change the color from green to another color.

It looks like i can change the chartTheme, but the theme does not explicitly have a variable to change the color of the plot display for lines.

I can change the line display color when using the plot() function – So is it possible to change the display of line plots to a different color using chartSeries() in quantmod?

  • 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-05-26T17:17:03+00:00Added an answer on May 26, 2026 at 5:17 pm

    Rather than cluttering its argument list with options controlling all aspects of chart appearance, chartSeries() has a single theme argument. theme accepts a chart.theme object that controls the colors of most parts of the plot, bundling all of those color choices into a single object.

    The function chartTheme() creates chart.theme objects of the appropriate form. Among the options listed in ?chartTheme, up.col seems to control the color you are asking about:

    require(quantmod)
    getSymbols("YHOO")
    chartSeries(YHOO, type="line",
                theme = chartTheme("black", up.col='gold'))
    

    enter image description here

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

Sidebar

Related Questions

I need to find some strings that the current version of Windows is using.
Let me preface by saying that I'm new to ant, and I'm using version
I am using Delphi 2010 with Tim Anderson's SQLite wrapper (unicode version) Have a
I've run into a small problem using the WPF RibbonControl (October 2010 version). My
I am using Visual Studio 2010 Professional Edition, and Windows Vista. Firstly, I have
I need a PHP version of the following C# code: string dateSince = 2010-02-01;
I'm using the Beta 2 version of Visual Studio 2010 to get a head
I have set up a NInject (using version 1.5) binding like this: Bind<ISessionFactory>().ToMethod<ISessionFactory>(ctx =>
Ok, so somewhere, something is wrong. When I was using version 1.3 the accordion
Using a version control system for your source code (like subversion ) makes sense

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.