GuangchuangYu / GuangchuangYu/hexSticker
Strip above plot
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 813
- Forks
- 179
- Avg merge
- 45m
- Merged PRs (30d)
- 1
Description
The white_around_sticker=TRUE argument doesn't cover enough area. IT leaves a small strip at the top of the plot, if there is an overflow. See the below reprex for an example:
library(hexSticker)
library(ggplot2)
#Create a plain red plot that fills the plot window
p <- ggplot() +
theme_void() +
theme(plot.background=element_rect(fill="red"))
#Create the sticker
s <- sticker(p,package = "",
s_x=1,s_y=1,s_width=2,s_height=2.5,
white_around_sticker=TRUE)
#Plot to see it
plot(s)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided R reprex with ggplot2, sticker(), and plot(s) to reproduce the strip above the plot. Trace the sticker rendering path from sticker() through plotting, then verify that white_around_sticker=TRUE covers overflow at the top without leaving a visible strip.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100