create_polygon_df() and is_polygon_df() are deprecated since nothing exported accepts a polygon_df.
A polygon_df is just a data frame with x, y, and id columns
(e.g. the boundary_df that {gridpattern} passes to a custom geometry pattern function).
To fill the areas of a grob with patterns see with_pattern_aes().
Value
create_polygon_df() returns a data frame with x, y, and id columns.
is_polygon_df() returns TRUE if x is a polygon_df or NULL.
Details
create_polygon_df() creates a polygon_df object from the given coordinates.
Code using polygon_df should not assume that the first and last point
within each id are the same i.e. it may have to manually set a final
point equal to the initial point if that is what its graphics system desires.
