[英]Treemap Ovreall Background Color in R
是否可以通過樹形圖包更改整體白色背景顏色(而不是值顏色),但可以將白色背景顏色更改為黑色?
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,
)
我不知道在樹形圖內是否可行,但是通過將樹形圖轉換為ggplot,我可以控制很多格式。 將樹圖轉換為ggplot
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.