增加 rCharts NVD3 所有点的点大小
Increase point size of all points for rCharts NVD3
根据 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
尝试使用这个非常有用的答案 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
根据 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
尝试使用这个非常有用的答案 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