【问题标题】:Increase point size of all points for rCharts NVD3增加 rCharts NVD3 的所有点的点大小
【发布时间】:2015-02-26 23:52:04
【问题描述】:

根据this 问题,可以根据数据集中的变量改变点的大小。是否可以简单地增加所有点的大小以使其更明显?

library(rCharts)
p2 <- nPlot(mpg ~ wt, group = 'cyl', data = mtcars, type = 'scatterChart')
p2$xAxis(axisLabel = 'Weight')
p2$chart(size = '1000') #Also tried 1000, '1000px', etc.
p2

【问题讨论】:

    标签: r nvd3.js rcharts


    【解决方案1】:

    尝试使用这个非常有用的答案d3.v3 scatterplot with all circles the same radius

    library(rCharts)
    p2 <- nPlot(mpg ~ wt, group = 'cyl', data = mtcars, type = 'scatterChart')
    p2$xAxis(axisLabel = 'Weight')
    #p2$chart(size = 100) #Also tried 1000, '1000px', etc.
    p2$chart(sizeRange = c(1000,1000))
    p2
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-12
      • 2020-04-13
      • 1970-01-01
      • 1970-01-01
      • 2023-03-10
      • 1970-01-01
      相关资源
      最近更新 更多