Skip to content

facet_null

facet_null() -> FeatureSpec

Remove faceting: one panel (ggplot2's default facet).

Adding it to a faceted plot takes the facet_wrap or facet_grid away.

Returns:

  • FeatureSpec –

    The facet specification.

Examples:

>>> from ggrust import *
>>> data = {"age": [1, 3, 2, 4], "weight": [4, 6, 8, 12], "pet": ["cat", "cat", "dog", "dog"]}
>>> plot = ggplot(data, aes("age", "weight")) + geom_point() + facet_wrap("pet")
>>> plot = plot + facet_null()
>>> plot.facet is None
True