Las flores de Iris
El conjunto de datos Iris
Este es un ejemplo básico de visualización interactiva con el paquete {plotly}.
library(tidyverse)
library(plotly)
p <- iris |>
ggplot(aes(Petal.Length, Petal.Width, col = Species)) +
geom_point()
ggplotly(p)
Podemos incluir también tablas profesionales:
library(flextable)
iris |>
group_by(Species) |>
summarise(across(.fns = list(mean))) |>
flextable() |>
autofit()
Species | Sepal.Length_1 | Sepal.Width_1 | Petal.Length_1 | Petal.Width_1 |
setosa | 5.006 | 3.428 | 1.462 | 0.246 |
versicolor | 5.936 | 2.770 | 4.260 | 1.326 |
virginica | 6.588 | 2.974 | 5.552 | 2.026 |