我试图增加使用 NVD3和rCharts创建的图中x和y轴的字体大小。这是我的剧情代码。任何帮助表示赞赏。nvd3 scatterPlot与rCharts在R:增加标签的字体大小?
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')
现在最简单的方法是添加CSS在http://stackoverflow.com/questions/17883017/adjusting- axis-labels-nvd3-graph-in-rcharts,但我知道这可能不是一个可行的解决方案。我会尝试以另一种方式工作,并提供一个从R直接起作用的答案。 – timelyportfolio