Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

metrics: report: long or many node names render badly in legends #287

@grahamwhaley

Description

@grahamwhaley

Having long node names, or many nodes or network connections, render very poorly in the pdf report graph legends. The tendency is for them to fall outside the page.
It seems to be a symptom of ggplot2 and possibly knitr page size calculation and rendering.

Examples:

Many net connections

Long node names

Simple solutions such as trying to modify legend.margins etc. are, well, not simple.

There is a relevant discussion in the ggplot Issues over at tidyverse/ggplot2#1502, which pretty much summaries as 'making all legend combos work for all situations is very very hard'.

It would be great if we could find a 'works for all' fix for this, but it seems non trivial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions