Forums | OpenR

OpenR: R & Statistics /
How to insert an figure label


Zhongzheng Mao's profile picture
Posts: 8

26 February 2022, 10:33 AM

  'Exercise1' is the the same label as the label of the chunk, but it still cannot properly show 'Figure1' after knitting. When I type the code '(Figure\@', it cannot automatically show the option.

  In addition, 

```{r tb1, echo=FALSE}
tb1 <- tibble::tribble(
~ `$H_0$` , ~ `$H_1$` , ~ Tails,
"$\\mu = M$" , "$\\mu \\ne M$", 2,
"$\\mu \\ge M$" , "$\\mu < M$" , 1,
"$\\mu \\le M$" , "$\\mu > M$" , 1
)
knitr::kable(tb1, 'latex', booktab = TRUE, caption = 'Types of the one sample t-test', escape = FALSE)
```

, the source of this code is from 'essay demo', it should display a graph but it shows nothing, it's `just blank and I have no idea about this while other images could show properly.

  The screenshots are attached.

Peng Zhao's profile picture
Posts: 128

26 February 2022, 6:08 PM

These are two different questions. 

For the first one, I cannot see why from the provided information. If no one knows, we could have remote desktop assistance during office hours (Wednesday 15:00).

For the second one, it is not a graph. It is a table. Again, the remote desktop might help.

Again, please do not ask two different questions in one post.

2 results