是否可以在rcharts上动态调整with?
现在我有
---
title: "Test"
author: "my name"
output:
slidy_presentation:
incremental: yes
---
## Slide with rCharts
```{r, comment = NA, results = "asis", tidy = F, echo=F}库(RCharts)
hair_eye_male <-子集(as.data.frame(HairEyeColor),Sex == "Male")
n1 <- nPlot(频率~头发,组=“眼睛”,数据= hair_eye_male,类型= "multiBarChart")
N1$集合(宽度= 1024)
n1$show('iframesrc',cdn = TRUE)
我试过n1$set(width = 100%),但不起作用
发布于 2015-04-27 09:51:08
我相信在rCharts中你只能以像素(px)为单位设置宽度和高度。
library(rCharts)
hair_eye_male <- subset(as.data.frame(HairEyeColor), Sex == "Male")
n1 <- nPlot(Freq ~ Hair, group = "Eye", data = hair_eye_male, type = "multiBarChart", width = 1024)
n1$show('iframesrc', cdn = TRUE)我亲自在html文档中手动更改它。
https://stackoverflow.com/questions/29594213
复制相似问题