我尝试使用rCharts在dPlot中设置标题:
library(rCharts)
a <- data.frame(dat=0,count=0)
t <- dPlot(
x = "dat",
y = "count",
data = a,
type = "line",
height = 400,
width = 700,
bounds = list(x=50,y=20,width=650,height=300)
)
t$templates$script = "http://timelyportfolio.github.io/rCharts_dimple/chartWithTitle.html"
t$set( title = "No Data found" )
t
不幸的是,here的建议工作并不奏效。有人可以帮忙吗?感谢。