Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to override format: html: cap-location: margin #1211

Closed
jjallaire opened this issue Jun 23, 2022 Discussed in #1172 · 2 comments
Closed

How to override format: html: cap-location: margin #1211

jjallaire opened this issue Jun 23, 2022 Discussed in #1172 · 2 comments
Assignees
Milestone

Comments

@jjallaire
Copy link
Collaborator

Discussed in #1172

Originally posted by harrelfe June 17, 2022
I specify cap-location: margin in my Quarto book yaml. For the few figures that have multiple panels this causes the figures to no longer be rendered in a matrix but rather as larger individual plots. Is there a way to override cap-location for one code chunk? Here's some test code:


title: "Test"
format:
html:
self-contained: true
cap-location: margin

#| label: fig-test
#| fig.width: 8
#| fig.height: 8
#| fig.scap: 'Four examples of residual plots'
#| fig.cap: 'Using residuals to check some of the assumptions of the simple linear regression model.'
#| fig-subcap:
#|   - "Non-constant $\\sigma^2$, which might call for transforming $y$"
#|   - "Constant $\\sigma^2$ but systemic failure of the linearity assumption"
#|   - "Ideal situation of white noise (no trend, constant variance)"
#|   - "$q-q$ plot demonstrating approximate normality of residuals, for a sample of size $n=50$.  Horizontal reference lines are at zero, which is by definition the mean of all residuals."
#| layout-ncol: 2
plot(rnorm(20)); plot(runif(20)); hist(rnorm(100)); hist(rexp(100))
@jjallaire jjallaire added this to the Future milestone Jun 23, 2022
@mcanouil
Copy link
Collaborator

Duplicates of #1173

@dragonstyle
Copy link
Collaborator

Closing in favor of the duplicate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants