-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.qmd
More file actions
31 lines (19 loc) · 743 Bytes
/
Copy pathindex.qmd
File metadata and controls
31 lines (19 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
title: "Open graph in Fullscreen"
format: html
editor: visual
---
Let's do a chart. But not too big as we don't want to cluter the report.
```{r, warning=FALSE, out.width="300px"}
library(ggplot2)
library(palmerpenguins)
scatter_plot <- ggplot(penguins, aes(x = flipper_length_mm, y = body_mass_g, color = species)) +
geom_point()
scatter_plot
```
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">See in Full Screen</button>
<div class="modal fade" id="exampleModal" tabindex="-1"><div class="modal-dialog modal-dialog-centered p-8" style="max-width: 90%"><div class="modal-content">
```{r, echo=FALSE, warning=FALSE, out.width="100%"}
scatter_plot
```
</div></div></div>