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

Support multi-plot in Rmd #1

Open
jooyoungseo opened this issue Aug 17, 2023 · 0 comments
Open

Support multi-plot in Rmd #1

jooyoungseo opened this issue Aug 17, 2023 · 0 comments
Assignees

Comments

@jooyoungseo
Copy link
Member

In the following example, only the last plot gets the interactivity. We have to support multi-plots in Rmd.

Reprex

test.Rmd:

---
output: html_document
---

```{r}
library(tidyverse)
library(maidr)

g <- ggplot(mpg, aes(class)) +
  geom_bar()
maidr(g)$maidr_widget
```


```{r}
g2 <- ggplot(starwars, aes(height, mass)) +
  geom_point() +
  geom_smooth(method = "loess")
maidr(g2)$maidr_widget
```
@jooyoungseo jooyoungseo self-assigned this Aug 17, 2023
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

1 participant