A "home" profile of three objects with multiple parts as two related data frames.
dathome
is the metadata, a data frame with columns:
A descriptive name
A colour to distinguish each object
An arbitrary numeric value
Key attribute, linking this object to its geometry in maphome
maphome
is the geometry, a data frame with columns:
Key attribute, linking this row to its metadata in dathome
Group attribute, unique values identify a closed ring
Logical, TRUE
for "island" vs. "hole"
Numeric value to identify sort order within branch
x and y coordinate
maphome
is the geometry
ggplot(maphome) + aes(x = x_, y = y_, group = branch_, fill = object_) +
geom_polypath() + geom_path() + facet_wrap(~object_, nrow = nrow(dathome))