scale_xsidey_continuous ¶
scale_xsidey_continuous(
name: str | None = None, **kwargs: Any
) -> FeatureSpec
Set the x side panel's own continuous y 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_y_continuous().
Returns:
-
FeatureSpec–Scale specification.
Examples:
>>> from ggrust import *
>>> data = {"x": [1.0, 2.0, 2.5, 3.0, 4.0], "y": [2.0, 1.0, 3.0, 2.5, 4.0]}
>>> plot = ggplot(data, aes("x", "y")) + geom_point() + geom_xsidedensity()
>>> plot = plot + scale_xsidey_continuous(breaks=[0.0, 0.2])