ggviews: A ggplot2-style API for holoviews¶
ggviews is a Python library that provides a ggplot2-style grammar of graphics API for creating visualizations using holoviews as the backend. It allows you to create beautiful, publication-quality plots using the familiar ggplot2 syntax that R users love.
Quick Start¶
from ggviews import ggplot, aes
import pandas as pd
# Create a simple scatter plot
df = pd.DataFrame({
'x': [1, 2, 3, 4, 5],
'y': [2, 5, 3, 8, 7],
'group': ['A', 'A', 'B', 'B', 'C']
})
plot = (ggplot(df, aes(x='x', y='y', color='group'))
.geom_point(size=8, alpha=0.8)
.theme_minimal()
.labs(title='My First ggviews Plot'))
Key Features¶
Grammar of Graphics. Build plots layer by layer using the grammar of graphics approach
Rich Geom Library. Points, lines, bars, boxplots, density plots, heatmaps, and more
Professional Color Scales. Viridis, ColorBrewer, and custom color palettes
Statistical Transformations. Smoothing, density estimation, and statistical summaries
Flexible Theming. Fine-grained control over plot appearance
Geographic Visualization. Built-in mapping capabilities with geom_map
Notebook Integration. Works seamlessly in Jupyter notebooks and other environments
Installation¶
pip install ggviews
Contents¶
Documentation