LoslegenKostenlos loslegen

Creating your own plotly plots

As you have seen, ggplot objects can be converted into a Plotly object, and hence be made interactive via the plotly library. This allows a user to interact with these plots with a mouse.

In the following, you will practice creating some Plotly objects with some exercises, given two existing ggplot objects called histogram and scatter which have been loaded for you.

The London Airbnb dataset has been stored as a data frame called listings in this exercise and the tidyverse library has already been loaded for you.

Diese Übung ist Teil des Kurses

Building Dashboards with shinydashboard

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Import plotly
___

# Convert histogram into a plotly object
___
Code bearbeiten und ausführen