In [1]:
import numpy as np
import pandas as pd
from lets_plot import *

LetsPlot.setup_html()
In [2]:
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]
})
In [3]:
ggplot(df, aes("x", "y")) + geom_point()
Out[3]:
In [4]:
ggplot(df, aes("x", "y")) + geom_pointdensity(stat="identity")
Out[4]:
In [5]:
ggplot(df, aes("x", "y")) + geom_qq(stat="identity")
Out[5]:
In [6]:
ggplot(df, aes("x", "y")) + geom_qq2(stat="identity")
Out[6]:
In [7]:
ggplot(df, aes("x", "y")) + geom_area()
Out[7]:
In [8]:
ggplot(df, aes("x", "y")) + geom_jitter()
Out[8]:
In [9]:
ggplot(df, aes("x", "y")) + geom_line()
Out[9]:
In [10]:
ggplot(df, aes("x", "y")) + geom_map()
Out[10]:
In [11]:
ggplot(df, aes("x", "y")) + geom_path()
Out[11]:
In [12]:
ggplot(df, aes("x", "y")) + geom_polygon()
Out[12]:
In [13]:
ggplot(df, aes("x")) + geom_ribbon(aes(ymin="start", ymax="y"))
Out[13]:
In [14]:
ggplot(df, aes("x", "y")) + geom_step()
Out[14]: