new_scale_fill ¶
new_scale_fill() -> FeatureSpec
Start a new fill scale (ggnewscale): new_scale("fill").
Returns:
-
FeatureSpec–The marker, to add to a plot with
+.
Examples:
>>> from ggrust import *
>>> data = {"x": [1, 2, 3], "y": [1, 2, 3], "kind": ["a", "b", "c"]}
>>> plot = (
... ggplot(data, aes("x", "y"))
... + geom_tile(aes(fill="y"))
... + new_scale_fill()
... + geom_point(aes(fill="kind"), shape=21, size=6)
... )