import numpy as np
import pandas as pd
from lets_plot import *
LetsPlot.setup_html()
df = pd.DataFrame({
"id": list(range(1, 11)),
"x": [4, np.nan, 1, 9, 6, 2, 10, np.nan, 7, 5],
"y": [7, 1, 9, 10, 4, np.nan, 3, np.nan, 6, 5],
"start": [0,0,0,0,0,0,0,0,0,0]
})
ggplot(df, aes("x", "y")) + geom_point()
ggplot(df, aes("x", "y")) + geom_pointdensity(stat="identity")
ggplot(df, aes("x", "y")) + geom_qq(stat="identity")
ggplot(df, aes("x", "y")) + geom_qq2(stat="identity")
ggplot(df, aes("x", "y")) + geom_area()
ggplot(df, aes("x", "y")) + geom_jitter()
ggplot(df, aes("x", "y")) + geom_line()
ggplot(df, aes("x", "y")) + geom_map()
ggplot(df, aes("x", "y")) + geom_path()
ggplot(df, aes("x", "y")) + geom_polygon()
ggplot(df, aes("x")) + geom_ribbon(aes(ymin="start", ymax="y"))
ggplot(df, aes("x", "y")) + geom_step()