Skip to content

Commit

Permalink
Quarto 要求 layout-ncol 替代 fig-ncol
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangyunHuang committed Oct 9, 2023
1 parent ce57313 commit 0be0742
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/quarto-book-fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Render Book (all)
if: github.event_name == 'push'
run: |
quarto render --to html
quarto render
shell: bash
env:
RETICULATE_PYTHON_ENV: /opt/.virtualenvs/r-tensorflow
Expand Down
2 changes: 1 addition & 1 deletion intro.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ gt::gt(anscombe[, new_order]) |>
#| fig-width: 3
#| fig-height: 3
#| fig-showtext: true
#| fig-ncol: 2
#| layout-ncol: 2
library(ggplot2)
data(anscombe)
Expand Down
2 changes: 1 addition & 1 deletion statistical-computation.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ $$
#| - 概率分布函数
#| fig-width: 4
#| fig-height: 3
#| fig-ncol: 2
#| layout-ncol: 2
#| fig-showtext: true
library(ggplot2)
Expand Down
4 changes: 1 addition & 3 deletions visualization-advanced.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,13 @@ ggplot(data = state_x77, aes(x = Income, y = `Life Exp`)) +
#| - 岭线图
#| - 岭线图和抖动图组合
#| - 岭线图和轴须图组合
#| fig-ncol: 2
#| layout-ncol: 2
#| fig-width: 4.5
#| fig-height: 3.5
#| echo: false
#| fig-showtext: true
library(ggridges)
ggplot(data = province_sex_ratio, aes(x = `性别比(女=100)`, y = `区域`)) +
geom_density_ridges(bandwidth = 1.5, alpha = 0.7) +
theme_classic()
Expand Down
2 changes: 0 additions & 2 deletions visualization-practice.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,8 @@ with(dens, plot_ly(x = x, y = y, z = z, type = "surface"))
#| fig-width: 7
#| fig-height: 4.5
#| fig-showtext: true
#| fig-ncol: 1
china_household_sex <- readRDS(file = "data/china-household-sex-2020.rds")
ggplot(data = china_household_sex, aes(x = `户口登记状况`, y = `男性` / `女性`)) +
geom_jitter(aes(color = `区域`), width = 0.3) +
theme_classic()
Expand Down

1 comment on commit 0be0742

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.