【问题标题】:Treemap Ovreall Background Color in RR中的树形图总体背景颜色
【发布时间】:2017-06-25 08:56:27
【问题描述】:

是否可以使用 treemap 包更改整体白色背景颜色(不是值颜色)但将白色背景颜色更改为黑色?

treemap(agg, #Your data frame object

        index=c("Course", 'variable'),  #A list of your categorical variables
        vSize = "value",  #This is your quantitative variable
        type="value", #Type sets the organization and color scheme of your treemap
        vColor='value',
        palette = "RdYlGn",  #Select your color palette from the RColorBrewer presets or make your own.
        #title="Spending in President Obama's 2017 Budget", #Customize your title
        fontsize.title = 14, #Change the font size of the title
        title = "",
        position.legend = 'bottom', 
        bg.labels = 0, 
) 

【问题讨论】:

  • 有可能吗?

标签: r plot shiny treemap


【解决方案1】:

我不知道它是否可以在树形图中,但是通过将树形图转换为 ggplot,我能够控制很多格式。 Converting treemap to ggplot

【讨论】:

    猜你喜欢
    • 2021-05-14
    • 2023-02-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多