使用ReporterS在bsdoc中并排绘图

时间:2015-12-16 01:22:53

标签: r plot reporters

我希望在HTML文档中将以下图表彼此相邻;

mydoc = addPlot(doc = mydoc,fun = function() barplot(as.matrix(Sustainability_Scores),col="green",ylab = "Sustainability Score",main = 'Sustainability Scores',las = 2))

mydoc = addPlot(doc = mydoc,fun = function() pie(as.matrix(Sustainability_Scores_pie),labels = c("Health","Basic Needs","Knowledge","Energy","Waste Water & Pollution","Technology","Total"), main = "Sustainability Score Distribution"))

我该怎么做呢?当我正在绘制它们时,它们会出现在另一个之上,这不是我正在寻找的。

此致 罗布。

1 个答案:

答案 0 :(得分:0)

您可以使用此useR的建议:

https://github.com/davidgohel/ReporteRs/issues/102