2014-10-17 62 views
0

如何將會議中的yaxis名稱重命名爲New。在rCharts中重命名軸

library(rCharts) 
library(reshape2) 
meansconferences=read.csv("https://raw.github.com/patilv/ESPNBball/master/meansconferences.csv") 
meltmeansconferences=melt(meansconferences[-c(1,10:14)], id.vars=c("Conference","Year")) 
d1=dPlot(y="Conference", x="value",data=meltmeansconferences, groups="variable",type="bar") 
d1$yAxis(type="addCategoryAxis",axisLabel = "new") 
d1$xAxis(type="addPctAxis") 
d1$legend(
    x = 0, 
    y = 0, 
    width = 500, 
    height = 75, 
    horizontalAlign = "right" 
) 
d1 

我嘗試

d1$yAxis(type="addCategoryAxis",axisLabel = "new") 

不工作。

感謝您的幫助。

回答