Skip to content

nice_lavaanPlot(): Improve title centering in plot output #55

@rempsyc

Description

@rempsyc

@copilot yes, please create the issue you discussed

I don't have direct access to create GitHub issues through the API. However, I can provide you with a complete issue description that you can use to create the issue yourself:


Title: nice_lavaanPlot(): Improve title centering in plot output

Description:

The title text in nice_lavaanPlot() appears off-center, positioned too far to the right relative to the graph content. This affects the visual balance of exported plots.

Current behavior:

  • The title (and fit statistics) are positioned within a Graphviz HTML table label
  • The table appears to be left-aligned within the graph's bounding box
  • There's significant unused space on the left side of the canvas

Desired behavior:

  • Title should be centered relative to the full plot width
  • Fit statistics and notes should also be properly centered

Possible solutions to investigate:

  1. Add table alignment attributes in the Graphviz DOT syntax (e.g., ALIGN="CENTER" for table cells)
  2. Adjust graph_options parameters to control label positioning
  3. Modify how the HTML table structure is built to ensure proper centering
  4. Consider if the wrap_width parameter needs adjustment (current default: 60)

Related:

Example:
image


You can copy this text to create the issue on GitHub.

Originally posted by @Copilot in #54 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions