Comments (7)
See https://bookdown.org/yihui/bookdown/figures.html for the requirements on chunk labels.
from hugo-xmin.
I have read those texts. I made a simpler example. But the caption is still not right (with unnecessary (#fig:load_data_and_visualization) heading).
```{r load_data_and_visualization, message=FALSE, warning=FALSE, fig.cap="Matrix plot of all variables"}
library(tidyverse)
birthsmoke <- read.table("https://onlinecourses.science.psu.edu/stat501/sites/onlinecourses.science.psu.edu.stat501/files/data/birthsmokers.txt", header = TRUE)
plot(birthsmoke)
```
from hugo-xmin.
You didn't read it carefully. To quote the documentation on that page:
If you want to cross-reference figures or tables generated from a code chunk, please make sure the chunk label only contains alphanumeric characters (a-z, A-Z, 0-9), slashes (/), or dashes (-).
from hugo-xmin.
I have changed it without spaces now. You could read my second example.
from hugo-xmin.
The point here is that the words "(#fig:load_data_and_visualization)" are unnecessary. I do not know why they appear here.
from hugo-xmin.
Okay, for the third time: please, please read the documentation carefully. I have copied the relevant part above. It is only one sentence. Please read every word in it.
from hugo-xmin.
Oh my, I know now. The underscore (_
) is not supported. :( I am sorry, but it is very error-prone for newbies if underscore is not supported.
from hugo-xmin.
Related Issues (20)
- stop drafts from showing up under sections
- Jump to next post HOT 2
- Unable to get syntax highlighting to work
- search box HOT 1
- Images on landing page no longer rendering? HOT 8
- where is the config.toml file HOT 3
- 能加个markdown toc的导航菜单实现吗 HOT 6
- 好喜欢这个主题! HOT 2
- Where to put a favicon? HOT 3
- Feature request: Last modified date HOT 2
- Broken Link to A.Hill Tutorial HOT 1
- Feature request: description tags on individual pages HOT 1
- 能改一下代码高亮格式吗? HOT 2
- 静态托管问题
- inline footnotes no longer working HOT 2
- What is the difference between a "note" and a "post"? HOT 1
- The generated sitemap.xml has errors HOT 1
- Support dark mode HOT 1
- Add direct link to demosite on themes.gohugo.io HOT 1
- Please change the default baseURL HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-xmin.