Session Ready
Exercise

Figure Options

Figure attributes allows you to customize rbokeh figures and to add more info through titles, legends, etc.

In this exercise, you will create a scatter plot and modify the title, grid lines and axes labels. In addition you will practice modifying the main theme.

Notice that to change the theme in rbokeh figures, you have two ways:

  • use the theme argument inside figure() (you will use this method in this exercise)
  • use the set_theme() function which allows you to modify an already existing figure

Note that:

  • rbokeh is pre-loaded
  • hdi_cpi_2015 is available in this session
Instructions 1/2
undefined XP
  • 1
  • 2
  • Set xgrid and ygrid to FALSE to remove them.
  • Change the x-axis label to "CPI" and the y-axis label to "HDI".