Fork me on GitHub

ggplot from ŷhat


geom_rect

Usage

geom_rect(position = 'identity', stat = 'identity')

Arguments

Name Description
position Position adjustments to points. identity
stat he statistical transformation to use on the data for this layer. identity

Aesthetics

import pandas as pd
import numpy as np

df = pd.DataFrame({
    "x": np.random.choice(range(10), 20),
    "y": np.random.choice(range(10), 20)
})
ggplot(df, aes(xmin='x', xmax='x+1', ymin='y', ymax='y+2')) +\
    geom_rect()