【问题标题】:Problems to change colors in vistime在vistime中改变颜色的问题
【发布时间】:2019-03-08 15:49:32
【问题描述】:

我最近对 ​​vistime 包进行了更新,但此后我无法再更改颜色。如果我运行这段代码:

pres <- data.frame(Position = rep(c("President", "Vice"), each = 3),
               Name = c("Washington", rep(c("Adams", "Jefferson"), 2), "Burr"),
               start = c("1789-03-29", "1797-02-03", "1801-02-03"),
               end = c("1797-02-03", "1801-02-03", "1809-02-03"),
               color = c('#cbb69d', '#603913', '#c69c6e'),
               fontcolor = c("black", "white", "black"))

vistime::vistime(pres, events="Position", groups="Name", title="Presidents of the USA")

我喜欢出现在时间轴上的“默认”颜色(总共 6 种颜色,而不是代码中提到的 3 种颜色)。

其他人有同样的问题吗?

【问题讨论】:

  • 应该是fontcolors和colors(复数)吗?
  • 我试过了,但没有任何改变...
  • 你使用的vistime是什么版本的?
  • 0.8.0版本。
  • 考虑到这个问题的支持,我猜你不是唯一一个遇到这个问题的人。我建议在这里 github.com/shosaco/vistime/issues 在 GitHub 上提出和发布

标签: r vistime


【解决方案1】:

我是包vistime的维护者。不幸的是,这是 0.8.0 版本中的一个错误,并在 0.8.1 中修复。考虑升级 - 1.0.0 版很快就会发布!

【讨论】:

    猜你喜欢
    • 2023-03-29
    • 1970-01-01
    • 1970-01-01
    • 2019-04-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多