Exercise

Understanding plotly limitations

You have seen that some ggplot plots cannot be directly converted into a Plotly object. For instance, boxplots have to be reoriented to be converted.

In the following exercises, you will fix some Plotly plots, so that they render correctly. You will also see some limitations of Plotly.

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

Instructions 1/2

undefined XP
  • 1
    • Modify boxplots so that it renders a set of vertical boxplots with plotly.
    • Obtain a set of horizontal plotly boxplots.
  • 2
    • Modify the code so that the plotly counterpart of violins produces horizontal violins.