pd.plot

package pd.plot

Type members

Classlikes

class Layer extends Grammar[Layer]

Layer for view compositions such as "layer", "concat, "hconcat" and "vconcat".

Layer for view compositions such as "layer", "concat, "hconcat" and "vconcat".

Value Params
cfg

Plotting configuration.

Since

0.1.0

Companion
object
object Layer

Layer for view compositions such as "layer", "concat, "hconcat" and "vconcat".

Layer for view compositions such as "layer", "concat, "hconcat" and "vconcat".

Since

0.1.0

Companion
class
class Plot(cfg: Config) extends Grammar[Plot]

Plotting engine based on Vega-Lite (https://vega.github.io/vega-lite/). Required DataFrame columns are automatically encoded and embedded.

Plotting engine based on Vega-Lite (https://vega.github.io/vega-lite/). Required DataFrame columns are automatically encoded and embedded.

The syntax keeps 1:1 to the Vega-Lite JSON grammar https://vega.github.io/vega-lite/docs/ with a few adaptions:

  • Top level specifications are added via methods (e.g. .title(...)).
  • The mark definition is on top level (e.g. .bar(...)) rather than part of a mark definition.
  • The encoding channel definitions are on top level (e.g. .color(...)) rather than part of encoding.

Top level definitions usually contain named parameters with following data types:

  • Number (Int, Float, Double),
  • String,
  • Struct, a complex struct-like object with one or more properties (of any type listed here),
  • Seq[T], a sequence (list) where the inner type T is one of the types above,
  • null.

Due to the reserved keyword type in Scala the following parameter name replacements were made:

  • Please use as where the JSON element is named type (e.g. in encodings and projection).
  • Please use set where the JSON element is named as (e.g. in transform).
See also
Since

0.1.0

Companion
object
object Plot

Plotting engine based on Vega-Lite.

Plotting engine based on Vega-Lite.

Since

0.1.0

Companion
class
class Struct

Dynamical data structure represented in JSON format.

Dynamical data structure represented in JSON format.

Value Params
json

String JSON representation.

See also
Since

0.1.0

Example
val struct = Struct(title = "apple", quantity = 3, edible=true, color=["green", "red", "green"])
Companion
object
object Struct extends Dynamic

Dynamical data structure represented in JSON format.

Dynamical data structure represented in JSON format.

Since

0.1.0

Companion
class

Value members

Concrete fields

val Nominal: String

Qualifier for nominal data, also known as categorical data, differentiates between values based only on their names or categories.

Qualifier for nominal data, also known as categorical data, differentiates between values based only on their names or categories.

Since

0.1.0

val Ordinal: String

Qualifier for ordinal data represents ranked order (1st, 2nd, etc.) by which the data can be sorted.

Qualifier for ordinal data represents ranked order (1st, 2nd, etc.) by which the data can be sorted.

Since

0.1.0

val Quantitative: String

Qualifier for quantitative data expresses some kind of quantity, typically numerical data.

Qualifier for quantitative data expresses some kind of quantity, typically numerical data.

Since

0.1.0

val Temporal: String

Qualifier for temporal data supports date-times and times.

Qualifier for temporal data supports date-times and times.

Since

0.1.0