CommencerCommencer gratuitement

Arranging views with bscols()

The bscols() function provides a flexible framework to combine HTML widgets, like plotly charts, using the Bootstrap column layout. Recall that in this system, there are 12 columns to distribute content over. Before adding different selectors, it's important to understand how to arrange content created using bscols().

plotly and crosstalk have been loaded for you, and the object p97, p07, and p17 are scatterplots of HPI against the percentage of homeowners in each state for the years 1997, 2007, and 2017, respectively.

Cet exercice fait partie du cours

Intermediate Interactive Data Visualization with plotly in R

Afficher le cours

Exercice interactif pratique

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

# Create a row of subplots containing p97, p07, and p17
___(___, ___, ___)
Modifier et exécuter le code