我正在玩Tal的介绍,在现实世界的情况下尽可能少地产生单词表.(请参阅那里可重现的例子 - 谢谢,Tal!)在实际应用中,表格要宽,以便在面向纵向的页面上打印,但您可能不想拆分它们.
很抱歉,如果我在pandoc或pander文档中忽略了这一点,但在从R写入Word .docx文件时如何控制页面方向(纵向/横向)?
我可能应该加上我开始使用knitr + markdown,我还不熟悉LaTex语法.但是我在尝试完成我的工作时尽可能多地接受.
出于纪录目的,我想要一些html输出中的绘图代码,而不是绘图.之后,我必须调用绘图代码,并在绘图中添加一些内容,但只能看到附加代码.我试过这个:
```{r non.finished.plotting, eval=FALSE}
plot(1,type="n")
```
Some explanatory text here in the output:
"This produces an empty plot, and we could now add some points to it manually."
```{r add.layer, fig.width=5, fig.height=5}
<<non.finished.plotting, echo=FALSE>>
points(x=rnorm(100,1,0.1), y=rnorm(100,0.8,0.1) )
```
Run Code Online (Sandbox Code Playgroud)
我在Yihui的发现了echo符号,但是当我编织它时,我在输出中收到一条错误信息.
## Error: plot.new has not been called yet
Run Code Online (Sandbox Code Playgroud)
我也尝试摆弄大块选项,但我找不到能满足我想要的组合.(对不起,这是非常基本的,但我没有找到类似这个例子的东西.)
从Windows 机器上的包加载数据,编码很糟糕。
\n\nrequire(vegdata)\ntax_dbf <- load.taxlist("GermanSL 1.3", detailed=TRUE)\ntax_dbf[33,"BEGRUEND"]\nRun Code Online (Sandbox Code Playgroud)\n\n\n\n\n[1] " "Einf\xc3\x83\xc2\xbcgen einer Zwischenebene""
\n
我可以解决这个问题:
\n\nEncoding(tax_dbf$BEGRUEND) <- "UTF-8"\ntax_dbf[33,"BEGRUEND"]\nRun Code Online (Sandbox Code Playgroud)\n\n\n\n\n[1]“Einf\xc3\xbcgen einer Zwischenebene”
\n
然而,我没有找到一种简单的方法来声明 df 中所有字符列的编码,而且我的 SO 搜索 foo 今天也很弱。\n这真是令人困惑。
\n\ntidyverse 中的任何人都可以为我的散文提供单行文字吗?
\nencoding r character-encoding non-ascii-characters dataframe