如何将yaxis名称从Conference重命名为New。
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")
不工作。
感谢您的帮助。
答案 0 :(得分:1)
此处描述了使用凹坑(即dPlot()
)更改轴标签