Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 ReporteRs 在 R 中的 pptx 对象中添加一个段落,但即使使用正确的参数,我也无法设置高度和宽度。
例如 :
doc = pptx() doc <- addSlide(doc, "Slide") doc <- addParagraph(doc,"ok",height=2,width=2,offx = 0,offy = 0) writeDoc(doc, "test.pptx" )
有人设法获得具有自定义尺寸的段落吗?
谢谢
以下应该可以解决您的问题
library(ReporteRs) doc = pptx() doc <- addSlide(doc, "Title and Content") doc <- addParagraph(doc, pot("ok"), par.properties = parProperties(),height=2,width=2,offx = 0,offy = 0) writeDoc(doc, "test.pptx" )