You can now also specify a legend title via functions guide_legend() and guide_colorbar().
Earlier, legend titles could only be specified via parameters of labs() and scale_xxx() functions.
import pandas as pd
from lets_plot import *
LetsPlot.setup_html()
mpg = pd.read_csv ("https://raw.githubusercontent.com/JetBrains/lets-plot-docs/master/data/mpg.csv")
mpg.head(3)
# Legend title
p = ggplot(mpg) + geom_point(aes('displ', 'hwy', color='cty', shape=as_discrete('cyl')), size=4)
p + guides(shape=guide_legend('Cylinders', ncol=2), \
color=guide_colorbar('City mileage'))