Skip to content

scale_ysidex_continuous

scale_ysidex_continuous(
    name: str | None = None, **kwargs: Any
) -> FeatureSpec

Set the y side panel's own continuous x axis (R package ggside).

Parameters:

  • name (str, default: None ) –

    Axis title (not drawn: side panels show ticks and labels only).

  • **kwargs (Any) –

    Every other parameter of scale_x_continuous().

Returns:

  • FeatureSpec –

    Scale specification.

Examples:

>>> from ggrust import *
>>> data = {
...     "height": [160, 165, 170, 172, 175, 181, 168, 177],
...     "weight": [55, 61, 66, 70, 72, 80, 63, 75],
... }
>>> plot = ggplot(data, aes("height", "weight")) + geom_point() + geom_ysidedensity()
>>> plot = plot + scale_ysidex_continuous(breaks=[0.0, 0.04])