Skip to content

Add SVG output support with transparent background#152

Open
lyangfan wants to merge 1 commit intoYinLiLin:masterfrom
lyangfan:add-svg-support
Open

Add SVG output support with transparent background#152
lyangfan wants to merge 1 commit intoYinLiLin:masterfrom
lyangfan:add-svg-support

Conversation

@lyangfan
Copy link
Copy Markdown

@lyangfan lyangfan commented May 7, 2026

Summary

Add "svg" to the file parameter options, supporting SVG output with transparent background in all 8 plot type sections:

  • Density (plot.type="d")
  • Circular Manhattan (plot.type="c")
  • Multi-tracks Manhattan (multracks=TRUE)
  • Multi-traits Manhattan (multraits=TRUE)
  • Single-trait Manhattan
  • Multi-tracks Q-Q plot
  • Multi-traits Q-Q plot
  • Single-trait Q-Q plot

SVG uses width/height in inches (same as PDF) with bg="transparent".

Test plan

  • All 8 plot types generate valid SVG files
  • All existing formats (jpg/pdf/tiff/png) still work
  • Tested with pig60K dataset

🤖 Generated with Claude Code

Add "svg" to file parameter options and svg() device calls with
bg="transparent" in all 8 plot type sections.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant