lets-plot

How to specify `scale_color_manual()` in `python`, using `lets-plot`

How to specify `scale_color_manual()` in `python`, using `lets-plot` Question: My code is: import pandas as pd from lets_plot import * LetsPlot.setup_html() data = pd.read_csv(‘https://raw.githubusercontent.com/JetBrains/lets-plot-docs/master/data/mpg2.csv’) ggplot(data, aes(x="engine horsepower", y="miles per gallon")) + geom_point(aes(color="origin of car")) And the output is: In R, using ggplot2, I would manually set the colors by writing: … + scale_color_manual(values = c("US" …

Total answers: 1