Skip to content

Unnecessary offset in place_labels? #334

@assaron

Description

@assaron

Hi,

I was trying to figure out, why I can't get more compact labeling in #333, and noticed that there seem to be an unnecessary offset in place_labels function (https://github.com/thomasp85/ggforce/blob/main/R/mark_label.R#L70):

polygons[[length(polygons) + 1]] <- polyoffset(rect, 10)

As far as I understand, it creates and additional space around the label. However, rects already accounts for label.margin, so I don't understand what's the point of an additional offset. Changing the offset from 10 to 0 greatly improved the label positioning for me.

--
Alexey

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions