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

[panelset] output as default view #182

Closed
Enchufa2 opened this issue Sep 12, 2022 · 1 comment
Closed

[panelset] output as default view #182

Enchufa2 opened this issue Sep 12, 2022 · 1 comment

Comments

@Enchufa2
Copy link

Is it possible to set the default panel view? Or the panel ordering? It would be nice to be able to have an additional chunk option to e.g. invert code and output, so that the output is shown by default.

@gadenbuie gadenbuie added this to the 0.8.0 milestone Nov 29, 2023
@gadenbuie
Copy link
Owner

After #193, you can now re-order the code and output panels

```{r panelset = c(output = "Plot", source = "ggplot2")}
ggplot(Orange) +
  aes(x = age, y = circumference, colour = Tree) +
  geom_point() +
  geom_line() +
  guides(colour = FALSE) +
  theme_bw()
```

or in Quarto syntax

```{r}
#| panelset:
#|   - output: Plot
#|   - source: ggplot2
ggplot(Orange) +
  aes(x = age, y = circumference, colour = Tree) +
  geom_point() +
  geom_line() +
  guides(colour = FALSE) +
  theme_bw()
```

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

No branches or pull requests

2 participants