CommencerCommencer gratuitement

Tabsets

In this exercise you'll create a tabset to show two charts in the same layout space.

Cet exercice fait partie du cours

Building Dashboards with flexdashboard

Afficher le cours

Instructions

  • Add a second chart to the first column that displays as a second tab.
  • Expand the html viewer after knitting and navigate between the two tabs.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

{"my_document.Rmd":"---\ntitle: \"Bikeshare\"\noutput: \n  flexdashboard::flex_dashboard:\n    orientation: columns\n---\n\n```{r setup, include=FALSE}\nlibrary(flexdashboard)\n```\n\nColumn\n-----------------------------------------------------------------------\n\n### Chart A\n\n```{r}\n\n```\n\nColumn\n-----------------------------------------------------------------------\n\n### Chart B\n\n```{r}\n\n```\n\n### Chart C\n\n```{r}\n\n```\n\n\n"}
Modifier et exécuter le code