Skip to main content

Crate ggsci_ggsql

Crate ggsci_ggsql 

Source
Expand description

Use ggsci color palettes in ggsql visualizations.

ggsql does not currently expose a third-party palette provider or registry API. This adapter therefore converts ggsci palettes to explicit color arrays, either as typed ggsql::plot::scale::OutputRange values or as textual SCALE clauses.

Structs§

GgsqlPalette
A resolved ggsci palette ready for ggsql conversion.

Enums§

Error
An error produced while resolving a palette or building a ggsql clause.
ScaleKind
The kind of ggsql SCALE clause to emit.

Functions§

color_array
Emits a ggsql color array for the first n colors in a discrete core palette.
output_range
Resolves either kind of core palette as a typed ggsql output range.
scale_continuous
Emits a continuous ggsql scale clause with explicit interpolation options.
scale_discrete
Emits a ggsql discrete scale clause using a discrete core palette.
scale_gephi_discrete_with_seed
Emits a reproducible discrete ggsql scale clause from a Gephi generator.
scale_iterm_discrete
Emits a discrete ggsql scale clause from a fixed iTerm theme variant.