import numpy as np
from lets_plot import *
Let’s Plot
Quarto example for the 2023-07-24 edition of hrbrmstr’s Daily Drop.
LetsPlot.setup_html()
12)
np.random.seed(
= dict(
data = np.repeat(['A', 'B'], 200),
cond = np.concatenate(
rating 0, 1, 200),
(np.random.normal(1, 1.5, 200))
np.random.normal(
)
)
ggplot(
data, = 'rating', fill = 'cond')
aes(x + \
) 700, 300) + \
ggsize(
geom_density(= 'dark_green',
color = .7
alpha + \
)
scale_fill_brewer(type='seq'
+ \
)
theme(= 'blank'
panel_grid_major_x )