簡體   English   中英

如果景觀太長,預訂圖標題會失敗嗎?

[英]Bookdown figure caption fails if too long in landscape?

我有一個足夠大的情節,需要使用RStudio中的(PDF)書簽來繪制景觀。 這個數字有很多,所以數字標題很長,我不能真正減少文本。

這是我一直在使用的示例代碼:

```{r qtl-pleiotropy, out.extra='angle=90', fig.width=25/2.54, fig.height=16.9/2.54, 
     fig.cap="QTL for fruit number per reproductive plant (Fruits/RP), seed number per fruit (Seeds/fr), seed number per reproductive plant (Seeds/RP), seed mass (Sd mass) and survival (Surv). Arrows indicate most-likely QTL position with the 95% Bayesian credible intervals, and the effect of the Swedish genotype (upward: increased phenotype; downward: decreased phenotype) in Italy (red) and Sweden (blue). Open arrows show QTL with credible intervals >15.2cM. Labels on the right of chromosome indicate QTL with pleiotropic effects on components of fecundity (c), fecundity and survival (s) and fecundity and seed mass (m). Grey boxes indicate the range of colocalising QTL for a single trait across site-year combinations."}
hist(rnorm(100)
```

問題是這會輸出一個橫向圖,但標題在PDF輸出中呈現為正文(即不作為圖標題):

\\ begin {figure} \\ caption {每個生殖植物果實數(果實/ RP)的QTL,每個果實的種子數(種子/ fr),每個生殖植物的種子數(種子/ RP),種子質量(Sd質量)和存活率(監測網)。 箭頭表示最可能的QTL位置具有95%貝葉斯可信區間,以及意大利(紅色)和瑞典(藍色)瑞典基因型(向上:表型增加;向下:表型減少)的影響。 空心箭頭顯示可信區間> 15.2cM的QTL。 染色體右側的標簽表明QTL對繁殖力(c),繁殖力和存活率以及繁殖力和種子質量(m)的成分具有多效性。 灰色框表示跨站點年組合的單個特征的共定位QTL范圍。} \\ end {figure}

如果我不使用橫向(即out.extra='angle=90' ),這是有效的。 如果我采用較短的標題塊,它也會正確呈現。 這有效,例如:

```{r qtl-pleiotropy, out.extra='angle=90', fig.width=25/2.54, fig.height=16.9/2.54, 
     fig.cap="Open arrows show QTL with credible intervals >15.2cM. Labels on the right of chromosome indicate QTL with pleiotropic effects on components of fecundity (c), fecundity and survival (s) and fecundity and seed mass (m). Grey boxes indicate the range of colocalising QTL for a single trait across site-year combinations."}
hist(rnorm(100))
```

out.extra='angle=90'時,字幕長度是否有上限?

有人可以建議解決這個問題嗎?

問題不是由標題的長度引起的,而是由未轉義的% 以下適用於我:

```{r qtl-pleiotropy1, out.extra='angle=90', fig.width=25/2.54, fig.height=16.9/2.54, fig.cap="QTL for fruit number per reproductive plant (Fruits/RP), seed number per fruit (Seeds/fr), seed number per reproductive plant (Seeds/RP), seed mass (Sd mass) and survival (Surv). Arrows indicate most-likely QTL position with the 95\\% Bayesian credible intervals, and the effect of the Swedish genotype (upward: increased phenotype; downward: decreased phenotype) in Italy (red) and Sweden (blue). Open arrows show QTL with credible intervals >15.2cM. Labels on the right of chromosome indicate QTL with pleiotropic effects on components of fecundity (c), fecundity and survival (s) and fecundity and seed mass (m). Grey boxes indicate the range of colocalising QTL for a single trait across site-year combinations."}
hist(rnorm(100))
```

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM