【发布时间】:2014-06-20 19:26:08
【问题描述】:
我正在尝试增加使用创建的绘图中 x 和 y 轴的字体大小 NVD3 和 rCharts。这是我的情节代码。任何帮助表示赞赏。
n1 <- nPlot(pValues~Chr,data=dat,type="scatterChart",height=400,width=750)
n1$chart(tooltipContent= "#! function(key, x, y, e){
return '<b>ID:</b> ' + e.point.ID
} !#")
n1$chart(forceY = c(0,8))
n1$chart(forceX = c(0,10))
#n1$chart(color = '#! function(d){return d.pValues} !#')
n1$xAxis(axisLabel = 'Chromosome')
n1$yAxis(axisLabel = '-log P value')
【问题讨论】:
-
现在最简单的方法是在 stackoverflow.com/questions/17883017/… 中添加 css,但我知道这可能不是一个可行的解决方案。我将尝试以另一种方式工作,并提供直接来自 R 的答案。